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
 

 

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: 2284
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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 5 Wed Jul 26, 2017 7:35 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Report cost in CA-dispatch Nileshkul CA Products 3 Wed Jun 07, 2017 10:32 pm


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