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
 

 

clarification in dfsort

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

New User


Joined: 28 Jun 2005
Posts: 99

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

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
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

New User


Joined: 28 Jun 2005
Posts: 99

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
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 DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts DFSORT sorting only specific records akodakka DFSORT/ICETOOL 4 Thu Aug 04, 2016 11:24 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm


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