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
 
SYNCSORT to write the time on the report header.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT to write the time on the report header.
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    Post subject:
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: 2353
Location: @my desk

PostPosted: Fri Dec 12, 2008 3:21 pm    Post subject:
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    Post subject: Reply to: write the time on the report hesder.
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Undefined Report Program socker_dad COBOL Programming 2 Fri Mar 30, 2018 1:45 am
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts WRITE to VSAM giving duplicate RC picus_mf CICS 1 Fri Feb 23, 2018 2:52 pm

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