IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

clarification in dfsort


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Fri Aug 12, 2005 11:24 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
No new posts DFSORT - VB file RDW getting overridden DFSORT/ICETOOL 3
Search our Forums:

Back to Top