|
C2N2 returns a packed decimal
30,9 value. There is no subprocedure C2N2xxxx, so the statement " A=C2N2xxx('123.5')" shouldn't work at all. The correct subprocedure name is C2N2. >From here on, I'll assume you are using CGIDEV2's C2N2 subprocedure. C2N2 figures out what the decimal character is. If it is a comma, it treats a period as a character to be ignored. If the decimal point is a comma, C2N2 converts '123.5' to 1235 and '123,5' to 123.5. For details about C2N2, read its prototype in CGIDEV2/QRPGLESRC member PROTOTYPEB. For even more detail, read its code in CGIDEV2/QRPGLESRC, member XXXDATA. You will find that the first thing C2N2 does is figure out what the decimal point is. To find out what your job's decimal point is, use DSPJOB OPTION(*DFNA). Page down to "Decimal format." If decimal format is *BLANK, the decimal point is a period. If it is J or I, it is a comma. Also see the system value QDECFMT. Mel Rothman, CGIDEV2 Author Mel Rothman, Inc. eamisano wrote: Hi to ALL and Merry Christmas to you. YAHOO! GROUPS LINKS
|
- [Easy400Group] Suggestions for C2N2 subprocedure eamisano
- RE: [Easy400Group] Suggestions for C2N2 subprocedure Jon Paris
- R: [Easy400Group] Suggestions for C2N2 subprocedu... Enrico Amisano
- Re: R: [Easy400Group] Suggestions for C2N2 su... Rich Diedrich
- Re: R: [Easy400Group] Suggestions for C2N... Rich Diedrich
- Re: R: [Easy400Group] Suggestions for C2N2 su... KROWLES
- RE: [Easy400Group] Suggestions for C2N2 subproced... Scott Klement
- Re: [Easy400Group] Suggestions for C2N2 subpr... Mel Rothman
- Re: [Easy400Group] Suggestions for C2N2 subprocedure Mel Rothman
- R: [Easy400Group] Suggestions for C2N2 subprocedu... Enrico Amisano
- Re: R: [Easy400Group] Suggestions for C2N2 su... Elbert Cook
- Re: [Easy400Group] Suggestions for C2N2 subprocedure Shane Bumgarner
