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: 2295
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 How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 2 Tue Jan 16, 2018 10:49 pm
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts Copying part of the report using SARBCH Aedulla CA Products 1 Tue Oct 24, 2017 9:24 am

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