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

how to execute TSO USERID command using a JCL ?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
san_icse
Currently Banned

New User


Joined: 11 May 2007
Posts: 11
Location: India

PostPosted: Mon Feb 25, 2008 9:34 pm
Reply with quote

Hi All,

Can anyone tell me please how to execute TSO USERID command using a JCL in batch mode?

I had tried it using IKJEFT01 utility but showing msg "COMMAND USERID NOT FOUND"

this is the JCL:

//ZCS0331R JOB MAINT023,'TSO IN BATCH',
// CLASS=T,MSGCLASS=T,MSGLEVEL=(1,1),
// REGION=8M,
// NOTIFY=&SYSUID
//STEP1 EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
USERID ZCS0331
/*
//
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Mon Feb 25, 2008 9:59 pm
Reply with quote

If you can do a TSO USERID ZCS0331 on the command line in TSO and get results, however, when you run it in batch you get "NOT FOUND", you probably need to use this JCL setup:

Code:

//REXX   EXEC PGM=IKJEFT01                 
//SYSTSPRT DD  SYSOUT=*                                       
//SYSEXEC  DD  DSN=HLQ.REXX.LIBRARY.HERE,DISP=SHR               
//SYSPROC  DD  DSN=HLQ.REXX.LIBRARY.HERE,DISP=SHR               
//SYSPRINT DD  SYSOUT=*                                       
//SORTMSG  DD  SYSOUT=*                                       
//SYSOUT   DD  SYSOUT=*                                       
//OUTPUT   DD  SYSOUT=*                                       
//LISTOUT  DD  SYSOUT=*                                       
//SYSTSIN  DD  *                                             


THE SYSEXEC/SYSPROC should be the library where the USERID REXX program exists.


If you don't know the library, enter the following commands on the command line one at a time.

Code:

TSO ISRDDN
MEMBER USERID


That should help you locate where the USERID REXX program exists.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Feb 25, 2008 10:01 pm
Reply with quote

I've never heard of this command. Could it be a special command at your site? If so, you may need a special STEPLIB, SYSPROC, or SYSEXEC.

Use TSO command ISRDDN to see what libraries are in your TSO session, then do command M USERID to search for the command in the various libraries.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top