Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
Posted: Thu Jan 19, 2006 10:56 am Post subject:
Quote:
Yes, this JCL does work but the only problem is that the negative sign in the output "TOTAL AMOUNT VALUE" doesn't get displayed properly. It gets displayed as '}'.
heman,
Just use the similar change operator used in step0100.
Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
Posted: Thu Jan 19, 2006 11:21 am Post subject:
heman,
Correction. you don't need a change parameter in step0200. you can just use the EDIT function. Also I would use 18 digits to sum the amount value. So change your step0100 control cards to the following.
This has worked. Thanks for this.
I had a query. The sysout in the STEP0200 has LRECL of 80.
The actual purpose of doing this was to add the trailer record at the end of the file which is of length 48 bytes. Thus, I wanted the output of STEP0200 in a DSN of 48 bytes but it needs LRECL 80.
So, I have to code another step to extract it into a file with record length 48.
Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
Posted: Thu Jan 19, 2006 9:38 pm Post subject:
Quote:
The actual purpose of doing this was to add the trailer record at the end of the file which is of length 48 bytes. Thus, I wanted the output of STEP0200 in a DSN of 48 bytes but it needs LRECL 80. So, I have to code another step to extract it into a file with record length 48.
was it 38 byte file or 48 byte file? Any ways if you want a 48 byte file then you don't need another step to create it. simply change the 80:x at the end of step0200 sysin cards to 48:X and it will create a 48 byte file.
if you want 38 byte file then change the step0200 sysin cards to the following
All times are GMT - 5 Hours Goto page Previous1, 2
Page 2 of 2
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