Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Would like to write into a file infront of IN: an OUT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
brams

New User


Joined: 31 Aug 2006
Posts: 1

PostPosted: Wed Sep 06, 2006 1:58 pm    Post subject: Would like to write into a file infront of IN: an OUT
Reply with quote

Hi,

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.
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Sep 06, 2006 8:57 pm    Post subject:
Reply with quote

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):

Code:

//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    *
<control statements>
//S2    EXEC  PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=&&M1,DISP=(OLD,PASS)
//MSGS DD SYSOUT=*
//COUNTS DD SYSOUT=*,RECFM=FB
//SYSIN    DD    *
  OPTION COPY
* Write DFSORT messages from S1 step to MSGS
  OUTFIL FNAMES=MSGS
* Write ICE054I count values to COUNTS
  OUTFIL FNAMES=COUNTS,INCLUDE=(2,7,CH,EQ,C'ICE054I'),
    OUTREC=(22,55)
/*


If that's not what you want, then please be more specific about exactly what you do want.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us