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: How to add jobname in the trailer of a report?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Majid Hussain

New User


Joined: 18 Aug 2007
Posts: 20
Location: Bangalore

PostPosted: Tue Aug 04, 2009 5:00 pm    Post subject: Syncsort: How to add jobname in the trailer of a report?
Reply with quote

Hi,

I have a requirement where I need to add the jobname, the job that is running the sort step to be added in trailer of the report. Can we do this using syncsort? Can you please provide the syntax or any pointers would be much appreciated.

Regards,
Majid
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 04, 2009 5:07 pm    Post subject:
Reply with quote

How will the jobname be identified to SYNCSORT
Back to top
View user's profile Send private message
Majid Hussain

New User


Joined: 18 Aug 2007
Posts: 20
Location: Bangalore

PostPosted: Tue Aug 04, 2009 5:14 pm    Post subject:
Reply with quote

That is what I want to know. Is it possible? because I have seen some syntaxes for ICETOOL where it can read the date, time, jobname and other stuffs fro SMF14RPT dataset. I was wondering if it can be done in syncsort.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Aug 04, 2009 7:45 pm    Post subject:
Reply with quote

Hello,

SMF14RPT is from historical data about previously executed processes. SMF14RPT uses SMF data as input, not the current system info.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Aug 04, 2009 10:42 pm    Post subject: Reply to: Syncsort: How to add jobname in the trailer of a r
Reply with quote

Is it not documented one way or the other in the Syncsort User Manuals? Or, doesn't Syncsort support the SYMNAMES DD in the same manner as DFSORT?
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Tue Aug 04, 2009 10:57 pm    Post subject: Re: Syncsort: How to add jobname in the trailer of a report?
Reply with quote

Majid Hussain wrote:
I have a requirement where I need to add the jobname, the job that is running the sort step to be added in trailer of the report.

Superk - Yes, this can be accomplished using SyncSort's Data Dictionary (SYMNAMES).

For example,
Code:
//STEP1  EXEC PGM=SORT
//SORTIN   DD DSN=input.file
//SORTOUT  DD DSN=output.file
//SYSOUT   DD SYSOUT=*
//SYMNAMES DD *       
JOBNAME,S'&JOBNAME'   
//SYSIN    DD *               
  SORT FIELDS=COPY         
  OUTFIL TRAILER1=(JOBNAME)
/*
Back to top
View user's profile Send private message
Majid Hussain

New User


Joined: 18 Aug 2007
Posts: 20
Location: Bangalore

PostPosted: Wed Aug 05, 2009 10:10 am    Post subject:
Reply with quote

Thanks a lot guys! Appreciate it. I will try it out.
Back to top
View user's profile Send private message
Majid Hussain

New User


Joined: 18 Aug 2007
Posts: 20
Location: Bangalore

PostPosted: Wed Aug 05, 2009 11:09 am    Post subject:
Reply with quote

It worked!! Thanks Alissa. Can you also please tell me the variable name for the JobNumber or if I can get the list of variables in SYMNAMES?
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Wed Aug 05, 2009 3:28 pm    Post subject: Reply to: Syncsort: How to add jobname in the trailer of a r
Reply with quote

This is the list of the standard Dynamic System Variables. Job Number is not one of them.
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 Splitting of single report to seperat... abdulrafi TSO/ISPF 4 Mon Mar 27, 2017 3:59 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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