Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Thu May 21, 2009 9:43 am Post subject: |
|
|
Here's a DFSORT job that will do what you asked for. I assumed you wanted the headers at the top of each page.
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/313)
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,
HEADER2=(1:'Employee number',26:'Empl salary',
45:'contact number'),
BUILD=(1:1,6,31:14,6,45:29,10,313:X)
/*
|
SORTOUT would have:
Code: |
Employee number Empl salary contact number
123456 50000 9876543210
579842 48000 9863254174
|
_________________ 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 |
|