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
 

 

HEADER1 and TRAILER1 with Julian date and Time (HHMM) format

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

New User


Joined: 11 Oct 2014
Posts: 2
Location: USA

PostPosted: Mon Oct 13, 2014 10:45 pm    Post subject: HEADER1 and TRAILER1 with Julian date and Time (HHMM) format
Reply with quote

Hello All,

I have gone thru few of the posts regarding the use of Julian date and time (HHMM format) on the header1 and trailer1 records of the SORT card. I know that TIME2 option can not be used with header1 and trailer1.
There was a post where workaround was possible with BUILD but the position of the time was at end of the header and trailer record.

I have created a SORT card which will temporarily put the HHMM characters in the first SORT step and in the next SORT step I will replace them with TIME2 option. The output file is of 740 characters.

My query is - is any other solution to have time (HHMM format) in the middle of the header1 and trailer record.


//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,
HEADER1=('AAAAAAA',YDDDNS(YD),'HHMM',
'BBBBBBB',DATENS(4MD),'CCCCCCCC'),
INCLUDE=(1,24,CH,NE,C' '),
BUILD=(1,700,40X),
TRAILER1=('XXXXXXXX',YDDDNS(YD),'HHMM',
'YYYYYYYY',COUNT=(M11,LENGTH=6),
'ZZZZZZZZ',DATENS(4MD))
//*

Let me know if any more details needed.

Your suggestions are highly appreciated.
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Thu Oct 16, 2014 6:04 am    Post subject:
Reply with quote

Unless I misunderstood, would TIMENS helps you and then remove SS later?
Back to top
View user's profile Send private message
nileshinus

New User


Joined: 11 Oct 2014
Posts: 2
Location: USA

PostPosted: Thu Oct 16, 2014 10:41 am    Post subject:
Reply with quote

Hi Rohit,
I agree with your solution, but it requires one more step to achieve.
I am looking to achieve that in one step.

I appreciate your reply.

Thanks,
Nilesh
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Thu Oct 16, 2014 4:11 pm    Post subject: Reply to: HEADER1 and TRAILER1 with Julian date and Time (HH
Reply with quote

You're going to have to prepend (variable-length records) or append (fixed-length) an HHMM field to each record, and then reference that field in HEADER1 and TRAILER1.

In HEADER1 it will use the data from the first (if any) record of the OUTFIL group. In TRAILER1 it will use the data from the last (if any) record of the OUTFIL group.
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
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7: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


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