View previous topic :: View next topic
|
Author |
Message |
balukanna
New User
Joined: 09 Apr 2008 Posts: 41 Location: USA
|
|
|
|
Hi,
I need to add two Sign Trailing variables, for Ex,
I/p
Amount1 S9(04)V99 SIGN TRAILING SEPERATE
value 100000+
Amount2 S9(04)V99 SIGN TRAILING SEPERATE
value 280000+
Need an ouput like this
O/P
Total 380000+ |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I'm not sure there is a question here. . .
COMPUTE MY-TOTAL = Amount1 + Amount2 will sum the numbers. |
|
Back to top |
|
|
balukanna
New User
Joined: 09 Apr 2008 Posts: 41 Location: USA
|
|
|
|
Hi Dick,
i have tried it but it is giving an error
"An invalid separate sign was detected in program" |
|
Back to top |
|
|
Cristopher
New User
Joined: 31 Jul 2008 Posts: 53 Location: NY
|
|
|
|
Hi Balukanna,
What is the error code appearing? By any chance have you used a Redefine clause involving the sign position or you may not have initialized it.Can you share the details of the actual variables used in the computation.
Cris |
|
Back to top |
|
|
balukanna
New User
Joined: 09 Apr 2008 Posts: 41 Location: USA
|
|
|
|
Hi Cris,
I have initialized the fields, i haven't used any redefine clause,
Code: |
COMPUTE SETUP-AMT =
RTV-EXT + CR-EXT
END-COMPUTE |
while running the job em getting MAXCC 12
The Sysout msg is
"IGZ0040S An invalid separate sign was detected in program " |
|
Back to top |
|
|
Cristopher
New User
Joined: 31 Jul 2008 Posts: 53 Location: NY
|
|
|
|
Balukanna,
Please provide the PIC clause definition of the variables RTV-EXT,CR-EXT and SETUP-AMT .
Hope you would not have used a group move involving the sign position.
Cris |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Sorry - missed the separate sign
Where did input in this non-standard for come from (data with an external sign, but no punctuation)? Usually the decimal would be imbedded in the data, not implied. We process many uploaded pc and unix files that are punctuated with a decimal point and a sign and use the function NUMVAL-C to easily use the data. |
|
Back to top |
|
|
|