Can any one explain me form above code of a step , what inrec fields will do. If it filters the data equals in the input file 1X'0000000F' from 6th position there is no data like the specified. Please explain me how the output file gets generated.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Sat Aug 06, 2005 9:24 am Post subject:
INREC reformats the record - INCLUDE and OMIT are the statements that filter records. For each input record, the INREC statement creates a reformatted record with the following items in the order shown:
o positions 1-5 from the input record
o the constant X'0000000F'
o the constant X'00000F'
o positions 13-24 from the input record
o the constant X'000F'
o positions 27-29 from the input record
o the constant X'00000F000F'
o positions 35-319 from the input record
o the constant X'40'
INREC is processed before SORT and SUM, so the SORT and SUM statements operate on the fields in the reformatted record. The resulting records from these operations will appear in SORTOUT.
You can read all about DFSORT's control statements in "z/OS DFSORT Application Programming Guide" which you can access online, along with all of the other DFSORT books, from:
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