kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12395 Topics: 75 Location: San Jose
|
Posted: Tue Aug 23, 2005 6:04 am Post subject: |
|
|
Karthik,
This is the simplest exercise. If you looked at SORT or JCL forum you would have found several examples of stripping the data and adding constants to the output file.
| Quote: |
This 40 character flat file should be prepared using the JCL
|
I wonder as to why you opened this topic in Application programming. Please post your questions to the right forum.
ex:
| Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=YOUR VSAM FILE,
// DISP=SHR
//SORTOUT DD DSN=YOUR OUTPUT FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE)
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(10,20, $ COPY 20 BYTES FROM POS 15 OF INPUT
C'MY 20 BYTE CONSTANT')
/*
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|