View previous topic :: View next topic
|
Author |
Message |
Mahan Kondapalli
New User
Joined: 01 Nov 2007 Posts: 3 Location: Hyderabad
|
|
|
|
Hello,
I have a file with 'n' number of records,where in the first 2 bytes of every record can be any thing from '00' to 99'.I need to have all records with '36' in first 2bytes.Can any body suggest how to go ahead?? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use a DFSORT job like the following to do what you asked for:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB)
//SORTOUT DD DSN=... output file (FB)
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(1:C'36')
/*
|
If your input file is VB, change the INREC statement to:
Code: |
INREC OVERLAY=(5:C'36')
|
|
|
Back to top |
|
|
|