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

How to capture &SYSUID in sort


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

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 29, 2011 11:52 am
Reply with quote

Hi,

I have a requirement where I have to capture the SYSUID in the SORTOUT dataset.

Please advice.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Jul 29, 2011 12:10 pm
Reply with quote

Research SYMNAMES & system symbols.

Garry.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 29, 2011 12:17 pm
Reply with quote

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA40/7.4.2?SHELF=&DT=20090527161936&CASE=
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 29, 2011 12:28 pm
Reply with quote

Hi Garry,

Can you please let me know link on the the same.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 29, 2011 12:44 pm
Reply with quote

Thanks Dick...

I am able to find &JOBNAME symbol name but I didn't found any thing related to SYSUID.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 29, 2011 12:50 pm
Reply with quote

Google on : DFSORT SYSUID
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 29, 2011 1:01 pm
Reply with quote

Hi Peter,

We dont have DFSORT in out shop... We are using Syncsort.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 29, 2011 1:01 pm
Reply with quote

Hi Peter,

We dont have DFSORT in out shop... We are using Syncsort.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 29, 2011 1:11 pm
Reply with quote

Oops, missed that. icon_eek.gif
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 29, 2011 2:13 pm
Reply with quote

gylbharat,

Are all your recent queries related to the same requirement?

I'm just wondering if a Cobol program(s) might be a better idea for collecting and formatting the data, rather than trying to lever it all into Syncsort?
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 29, 2011 2:27 pm
Reply with quote

Bill,

All the recent queries are different...
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 29, 2011 2:34 pm
Reply with quote

OK, you're busy then!
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 29, 2011 2:43 pm
Reply with quote

See (look in the manual) if Syncsort can take a PARM associated to a name (like DFSORT can).

If not, look for something which can take a parm, write it to a single-record file and try to incorporate that?
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 29, 2011 3:00 pm
Reply with quote

yeah... I tried the below sort...

Code:

//S1 EXEC PGM=SORT,PARM='&SYSUID'                     
//SYSOUT  DD DSN=&TEMP,DISP=(NEW,PASS,KEEP)           
//SORTIN  DD *                                       
RECORD                                               
/*                                                   
//SORTOUT DD DUMMY                                   
//SYSIN   DD *                                       
  OPTION COPY                                         
/*                                                   
//S2 EXEC PGM=SORT                                   
//SYSOUT  DD SYSOUT=*                                 
//SORTIN  DD DSN=&TEMP,DISP=(OLD,DELETE,DELETE)       
//SORTOUT DD SYSOUT=*                                 
//SYSIN   DD *                                       
  SORT FIELDS=COPY                                   
  INCLUDE COND=(3,7,CH,EQ,C'WER131I')                 
  OUTREC FIELDS=(1:30,8)                             
/*                                                   


But was wondering how this can be done in a single sort.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 29, 2011 3:16 pm
Reply with quote

That's thinking, that is :-)

I have no Syncsort manual, but maybe someone can now tighten it up. I wouldn't worry too much if they can't, it might be two steps but they don't exactly do a lot.

If you go with this, make sure you document it for others at your site to ease their understanding. Someone doing support/maintenance probably won't get it first time.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 29, 2011 3:19 pm
Reply with quote

Can you explain something to me,

Do you need the SYSUID in the dataset name or as part of the data
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 29, 2011 3:29 pm
Reply with quote

The file is used to load the DB2 table using load utility and Table has USER ID column.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
Search our Forums:

Back to Top