Thanks, it satisfies my requirement. but can u tell me if there is any special significance of parameter 80:X, it made no difference when i did not keep that.
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Fri Dec 02, 2005 1:30 am Post subject:
Deepatred,
What Sort product (DFSORT / SYNCSORT) are you using ? - The first line in your SORT sysout will have the Product name and version.
80:X (in general nnnn:X) is used to fill empty spaces (blanks) till column 80 (or nnnn) from the current position. If you omit this parameter and if you do not provide DCB-LRECL in JCL, your output file length is ends after the last field that you provide in INREC/OUTREC/OUTFIL OUTREC/HEADER/TRAILER statements.
PS: The JCL shown above does not contain a DCB parameter for SORTOUT. Do not make any changes to the JCL. Try running the JCL and see the LRECL of OUTPUT file and try with 80:X and see the difference.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Dec 02, 2005 11:39 am Post subject:
Actually, the 80:X doesn't do anything in this case. The output record length is set from the length of the data records, NOT from the length of the HEADER records. In this case, the length of the data records is 80 = the length of the input records.
80:X would be necessary if an OUTREC parameter created shorter records and you wanted them padded out with blanks to 80 bytes, e.g.
Code:
OUTFIL OUTREC=(1,20,80:X)
Noet that if a HEADER record is longer than the data record, DFSORT terminates, e.g.
_________________ 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
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