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: 2285
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 write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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