View previous topic :: View next topic
|
Author |
Message |
harithaganna
New User
Joined: 03 Jun 2008 Posts: 14 Location: chennai
|
|
|
|
I have the input file in the following layout
01 ACCTNBR PIC X(10)
01 AMT PIC S9(13)V99 COMP3
I should write the records whose amount is less than 100,000,000,000.00 to first output file and greater than or equal to 100,000,000,000.00 records to second output file.
Thanks & Regards
Haritha |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Here's a DFSORT job that will do what you asked for:
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//LT DD DSN=... output file1
//GE DD DSN=... output file2
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=LT,INCLUDE=(11,8,PD,LT,10000000000000)
OUTFIL FNAMES=GE,SAVE
/*
|
|
|
Back to top |
|
|
|