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
 

 

How to capture &SYSUID in sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to capture &SYSUID in sort
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

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jul 29, 2011 12:10 pm    Post subject:
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: 6968
Location: porcelain throne

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

http://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    Post subject:
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    Post subject:
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: 2436
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 29, 2011 12:50 pm    Post subject:
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    Post subject:
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    Post subject:
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: 2436
Location: Netherlands, Amstelveen

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

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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Jul 29, 2011 2:13 pm    Post subject:
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    Post subject:
Reply with quote

Bill,

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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

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

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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Jul 29, 2011 2:43 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Jul 29, 2011 3:16 pm    Post subject: Reply to: How to capture &SYSUID in sort
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 29, 2011 3:19 pm    Post subject:
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    Post subject:
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    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 SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


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