Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
clarification in dfsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
thanooz

Active User


Joined: 28 Jun 2005
Posts: 105

PostPosted: Fri Aug 12, 2005 9:55 pm    Post subject: clarification in dfsort
Reply with quote

A Clarification in Sort.

My Requirement:
When a input file is empty(without any records),
can we create a control file for this empty file


The output format:

Date, RecordCount Amount Field
2005-08-1200000000000000 0


If a file is having atleast one record, we are able to create a control
file for this.
When intput file in empty, INREC and OUTREC are not working.
Back to top
View user's profile Send private message
References
PostPosted: Fri Aug 12, 2005 9:55 pm    Post subject: Re: clarification in dfsort Reply with quote

Frank Yaeger

DFSORT Moderator


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

PostPosted: Fri Aug 12, 2005 11:24 pm    Post subject:
Reply with quote

You didn't give me enough details for me to give you a complete answer. INREC and OUTREC do not produce any records when the input file is empty. But OUTFIL TRAILER1 can be used to produce a trailer record even when the input file is empty, e.g.

Code:

   OUTFIL REMOVECC,
      TRAILER1=(DATE=(4MD-),COUNT=(M11,LENGTH=14),...)


If you only want the trailer record (no detail records), change the statement to:

Code:

   OUTFIL REMOVECC,NODETAIL,
      TRAILER1=(DATE=(4MD-),COUNT=(M11,LENGTH=14),...)


I don't know what your Amount field represents or what you want the complete output file to look like. If you need more specific help, you'll need to supply more details about what you're trying to do in both the non-empty and empty cases.
Back to top
View user's profile Send private message
thanooz

Active User


Joined: 28 Jun 2005
Posts: 105

PostPosted: Tue Aug 16, 2005 3:17 pm    Post subject: Re: clarification in dfsort
Reply with quote

Thank's Frank

my problem is solved.


Thank's
thanooz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1