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

Add Symbolic Literal to Syncsort Report


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

New User


Joined: 19 May 2010
Posts: 2
Location: USA

PostPosted: Wed Sep 29, 2010 7:12 pm
Reply with quote

From JCL - notice the XXX999 literal via the PGRM symbolic.
Code:

//XXX999    EXEC BTCHRET,PGRM='XXX999'


From PROC - notice the symbolic PGRM on the F1 & F2 DD's -
notice the ELEMENT ID Header.
Code:

//SYSIN    DD *                                     
 JOINKEYS FILE=F1,                                   
           FIELDS=(001,06,A)         *RETROFITS     
 JOINKEYS FILE=F2,                                   
           FIELDS=(001,06,A)         *VANILLA SOURCE
  REFORMAT FIELDS=(F1:1,80,F2:1,80)                 
  SORT     FIELDS=COPY                               
  OUTFIL   FNAMES=OLDVNEW,NODETAIL,                 
            OUTREC=(001:081,072,                     
                    075:001,080),                   
           HEADER2=(001:'ELEMENT ID : ',             
                    050:'DATE: ',&DATE,//,           
                    001:'ORIGINAL-CODE',             
                    030:'RETROFIT-CODE'/)           
//SORTJNF1 DD DSN=RETROFIT(&PGRM),DISP=SHR           
//*                                                 
//SORTJNF2 DD DSN=VANILLA(&PGRM),DISP=SHR           
//*                                                 
//OLDVNEW  DD SYSOUT=*                               



Current Report From Sort:

Code:

********************************* TOP OF DATA ******************
ELEMENT ID :                                     DATE: 09/29/10
                                                               
ORIGINAL-CODE                RETROFIT-CODE                     
                                                               
******************************** BOTTOM OF DATA ****************



Desired Report - Notice the literal from the PGRM symbolic on the report after Element ID.

Code:

********************************* TOP OF DATA ******************
ELEMENT ID :   XXX999                            DATE: 09/29/10
                                                               
ORIGINAL-CODE                RETROFIT-CODE                     
                                                               
******************************** BOTTOM OF DATA ****************


I do realize that I could code a different step for each PGRM and hard code the literal after the element ID. However, if feasible, my desire is to have the literal pulled from the symbolic and written to the report each time the PROC step is executed.

Is it feasible to do what I desire? Please let me know as time permits.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Sep 29, 2010 7:58 pm
Reply with quote

Easy. Use the SYMNAMES DD statement to define your symbolic values to Syncsort.
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 only first records of the fil... SYNCSORT 7
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Report of batch jobs JCL & VSAM 1
Search our Forums:

Back to Top