View previous topic :: View next topic
|
Author |
Message |
Shaheen Kalokhe
New User
Joined: 21 Feb 2008 Posts: 21 Location: India
|
|
|
|
I want to create an Output file with the following requirements
1) FB with length of 400
2) It will have 4 records (Header + 3 Records )
The output file should have the following contents.
0008888880000000000000000
0003678421280000003
0004335271280000003
0007325621280000003
Please let me know how can this be achieved using DFSORT/ICETOOL without using an Input File.
Thanks
Shaheen |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
Shaheen Kalokhe,
The following DFSORT JCL will give you the desired results
Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REMOVECC,NODETAIL,BUILD=(400X),
TRAILER1=('0008888880000000000000000',/,
'0003678421280000003',/,
'0004335271280000003',/,
'0007325621280000003')
//* |
|
|
Back to top |
|
|
Shaheen Kalokhe
New User
Joined: 21 Feb 2008 Posts: 21 Location: India
|
|
|
|
Skolusu,
Thanks a ton for your reply. The Sort worked fine. I went through the manuals to understand the use of REMOVECC & NODETAIL. I understood the use of REMOVECC but could not understand the use of NODETAIL.
Please explain a bit about NODETAIL.
Thanks & Regards
Shaheen |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
NODETAIL option will supress the input records from being copied to o/p file.
Only the trailer statement o/p will be in the o/p file.
NODETAIL eliminates the data records.
Thanks & Regards, |
|
Back to top |
|
|
Shaheen Kalokhe
New User
Joined: 21 Feb 2008 Posts: 21 Location: India
|
|
|
|
Thank you
vasanthz |
|
Back to top |
|
|
|