COMPANY
00000001ACCOUNT
00000002ACCOUNT
00000003ACCOUNT
COMPANY
00000001ACCOUNT
00000002ACCOUNT
The record which has 'COMPANY' word is header record, and the records below that are detail records. The output is needed in two files, such as the first header and its detail in one file and second header and its detail in second file.
Please help
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
sun_job wrote:
yes, the input file will have only two company record
its a variable block file , LRECL = 1000
sun_job,
Do NOT use the same approach for VB file , appending an ID num at the end of a VB file will ruin the very basic concept of VB files. You will be making all the variable records of the same length.
Use the following DFSORT JCL which will give you the desired results