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

insert current date in header record & trailer count


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 2482
Location: @my desk

PostPosted: Thu Jul 22, 2010 6:02 pm
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
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: 2482
Location: @my desk

PostPosted: Thu Jul 22, 2010 6:11 pm
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 Developer


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

PostPosted: Thu Jul 22, 2010 10:42 pm
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 All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Discard record with 0 entry if Dup... SYNCSORT 7
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
Search our Forums:


Back to Top