brams New User Joined: 31 Aug 2006 Posts: 1
I have used DF Sort utility to sort a file on some key fields.
In sysout it displays these messages
ICE055I 0 INSERT 0, DELETE 439
ICE054I 0 RECORDS - IN: 5801820, OUT: 5801381
I would like to write into a file the values infront of IN: and OUT: .(IN: 5801820, OUT: 5801381 ).
Can any one help me.
Frank Yaeger DFSORT Moderator Joined: 15 Feb 2005 Posts: 7130 Location: San Jose, CA
I'm not sure exactly what you want. If you want an output file with a record containing:
IN: count1, OUT: count2
you can write the DFSORT messages to a temporary data set and then extract the ICE054I message with a DFSORT job like this (S1 is your original step and S2 is the step to print out the messages from S1 and the counts from ICE054I):
//S1 EXEC PGM=ICEMAN
//SYSOUT DD DSN=&&M1,UNIT=SYSDA,SPACE=(TRK,(5,5)),DISP=(,PASS)
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
//S2 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=&&M1,DISP=(OLD,PASS)
//MSGS DD SYSOUT=*
//COUNTS DD SYSOUT=*,RECFM=FB
//SYSIN DD *
* Write DFSORT messages from S1 step to MSGS
* Write ICE054I count values to COUNTS
If that's not what you want, then please be more specific about exactly what you do want.
All times are GMT + 6 Hours