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

I need to create a header with system/current date


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rahulcherekar

New User


Joined: 20 Feb 2007
Posts: 16
Location: New York

PostPosted: Thu Feb 05, 2009 9:23 pm
Reply with quote

I'm using following sort card in job:

Code:

  OPTION COPY
  OUTFIL OUTREC=(1,20,DATE1)


My job is giving Max CC = 0, but the output is still empty.

Thanks,
Rahul.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Feb 06, 2009 12:20 am
Reply with quote

rahulcherekar,

if your Input file is empty, then your output also would be empty. if your intention is to create a header record even if your file is empty then use the following control cards

Code:

//SYSIN    DD *                               
  SORT FIELDS=COPY                           
  OUTFIL REMOVECC,HEADER1=(1,20,DATENS=(4MD))
/*
Back to top
View user's profile Send private message
rahulcherekar

New User


Joined: 20 Feb 2007
Posts: 16
Location: New York

PostPosted: Fri Feb 06, 2009 1:29 am
Reply with quote

Thanks Skolusu it worked.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top