Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Mar 27, 2003 4:59 pm Post subject:
Anand_r,
Syncsort does not support the editing of the count field. Also REMOVECC is not supported by syncsort. DFSORT supports both of those features. The following JCL will give you the desired results. The job not only removes the carriage control character and also puts the count in the desired format. If you don't want the date in the output dataset, you can use the second method to get the count.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Thu Mar 27, 2003 7:37 pm Post subject:
Anand,
Quote:
INREC FIELDS=(2,33,34,8,FS,ZD,LENGTH=6,42,21,3X)
When we use any report functions(trailer1, header1...) in sort, it will add 1 byte carriage control in the 1st byte.
So we removing it using inrec fields in the second pass
so
2,33 tells that to copy from 2nd byte from the input for a length of 33 bytes.
34,8,FS,ZD,LENGTH=6 means that count created in the first pass is of 8 Bytes in FLOATING SIGN(FS) format and you are converting to ZD format for a length of 6 bytes.
42,21 means copy from 42nd byte for a length of 21 bytes
3x means pad with 3 spaces
Also I forgot to add RECFM=FB for the output dataset.Please add that to your output dataset definition and it will create the dataset without the carriage control
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Apr 02, 2003 1:38 pm Post subject:
Anand,
Syncsort considers it manuals as properiatory and hence are not available on web. Since your shop has syncsort you can request a copy of the manual.or Just ask your systems programmer if they have any copies with them.
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