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
 

 

insert current date in header record & trailer count

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

New User


Joined: 15 Sep 2008
Posts: 17
Location: Chennai

PostPosted: Thu Jul 22, 2010 5:41 pm    Post subject: insert current date in header record & trailer count
Reply with quote

Hi,

I'm writing a sort job to merge the data records of 4 different files. The 4 files will not have header and trailer record.

But the merged output file should have a header record with current date in it and a trailer record with the count of records.

Please advise on how this can achieved .

thanks,
bhuvana
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Thu Jul 22, 2010 6:02 pm    Post subject:
Reply with quote

Are you MERGEing the files based on any key? If yes, what about the starting position,length and format of the key field in the input files? And remember in order to do a 'MERGE' the files must be presorted on the key field.
Or you just want to concatenate all the input files?

What about the LRECL/RECFM of input files?

And the format of Date that you want in the header-ddmmyy? mmddyy or mmddyyyy or what?
Back to top
View user's profile Send private message
Bhuvaneswari K

New User


Joined: 15 Sep 2008
Posts: 17
Location: Chennai

PostPosted: Thu Jul 22, 2010 6:05 pm    Post subject: Reply to: insert current date in header record & trailer
Reply with quote

The date format is yyyymmdd. the files are of lenght 80, q-sam files.

thanks,
bhuvana
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Thu Jul 22, 2010 6:11 pm    Post subject:
Reply with quote

Arun Raj wrote:
Are you MERGEing the files based on any key? If yes, what about the starting position,length and format of the key field in the input files? And remember in order to do a 'MERGE' the files must be presorted on the key field.
Or you just want to concatenate all the input files?

And what about this part?. icon_rolleyes.gif
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: Thu Jul 22, 2010 10:42 pm    Post subject:
Reply with quote

bhuvana,

Please show an example of the records in each input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input files. If a file can have duplicates within it, show that in your example.
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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm


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