Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2285
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: 2285
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us