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

SYNCSORT to write the time on the report header.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vikrant85

New User


Joined: 05 Dec 2008
Posts: 8
Location: pune

PostPosted: Fri Dec 12, 2008 2:46 pm
Reply with quote

I need to write a Report Header of the output file using SYNCSORT. I had written the header in the Parm file. I got the functions to populate the date and page numbers which i had written in the parm file. I also need to show the current time on the report against the time field.
Back to top
View user's profile Send private message
vikrant85

New User


Joined: 05 Dec 2008
Posts: 8
Location: pune

PostPosted: Fri Dec 12, 2008 2:47 pm
Reply with quote

Code:
//CTL3CNTL DD *                                                       
  OUTFIL FNAMES=FILEC,INCLUDE=(236,1,CH,EQ,C'A'),                     
  HEADER2=(2:'DATE ',DATE,100:'report title',       
     213:'REPORT   OPXXXX',228:' PAGE ',PAGE=(M11,LENGTH=4),/,         
     2:'TIME ',93:'report subtitle',     
     139:'PRODUCTS',223:'PROGRAM FB14500',/,                           
      /,                                                               
      4:'CARD NUMBER',20:'PREFERRED POSTAL NAME',55:'PREFERRED LETTER',
      72:'ADDRESSING',102:'ADDRESS LINE 1',143:'POST CODE + CITY NAME',
       199:'COUNTRY'),                                                 
                                                                       
    BUILD=(1,235,239:X)                                               
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Fri Dec 12, 2008 3:21 pm
Reply with quote

vikrant85,

Check this job. You can choose between 24 hr/12 hr format.

Code:
//STEP1    EXEC PGM=SORT                                   
//SYSOUT   DD SYSOUT=*                                     
//SORTIN   DD *                                           
DUMMY RECORD                                               
//SORTOUT  DD SYSOUT=*                                     
//SYSIN    DD *                                           
 SORT FIELDS=COPY                                         
 OUTFIL NODETAIL,HEADER2=('CURRENT TIME1 : ',&TIME=(24:),/,
                          'CURRENT TIME2 : ',&TIME=(12:)) 

SORTOUT
Code:
CURRENT TIME1 : 01:49:07   
CURRENT TIME2 : 01:49:07 am
Back to top
View user's profile Send private message
vikrant85

New User


Joined: 05 Dec 2008
Posts: 8
Location: pune

PostPosted: Fri Dec 12, 2008 5:14 pm
Reply with quote

Thanks,its working
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top