View previous topic :: View next topic
|
Author |
Message |
Majid Hussain
New User
Joined: 18 Aug 2007 Posts: 20 Location: Bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
How will the jobname be identified to SYNCSORT |
|
Back to top |
|
|
Majid Hussain
New User
Joined: 18 Aug 2007 Posts: 20 Location: Bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
SMF14RPT is from historical data about previously executed processes. SMF14RPT uses SMF data as input, not the current system info. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
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 |
|
|
Majid Hussain
New User
Joined: 18 Aug 2007 Posts: 20 Location: Bangalore
|
|
|
|
Thanks a lot guys! Appreciate it. I will try it out. |
|
Back to top |
|
|
Majid Hussain
New User
Joined: 18 Aug 2007 Posts: 20 Location: Bangalore
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
|