Posted: Tue Mar 22, 2005 4:48 pm Post subject: moving the sign byte in a comp-3 field to the output file
Hi,
I have a s9(13)v 9(2) field in the input file. I need to move the value to the output file, but the sign should appear in the output file.
I have tried using the following options in the program, but none of them have worked.
a. i have moved the value to a temp variable in the program and declared it as S9(13)V9(2) SIGN LEADING SEPARATE. Then I have moved to this field to the output file field declared as S9(13)V9(2) SIGN LEADING SEPARATE. It shows invalid value.
b. Same as in condition a, I have declared the output file fields as S9(13)v9(2), 9(13)v9(2), x(16).
None of the above options have worked.
Please can anyone let me know how we could do this programatically.
replace P in the outrec fields with the start position of your comp-3 field.
If you do not want the leading zeroes then change the SYSIN cards to the following
Code:
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(P,8,PD,EDIT=(IIIIIIIIIIIIT.TTS),SIGNS=(,,+,-))
/*
replace P in the outrec fields with the start position of your comp-3 field.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum