Rexx program to submit a JCL from different USER ID.



IBM's Command List programming language & Restructured Extended Executor

Rexx program to submit a JCL from different USER ID.

Postby Priya86 » Wed Mar 24, 2010 1:18 pm

Hi,

Is it possible to submit a JCL from different user id using REXX program.

Explannation:

I want to submit a jcl 'Test.sample.jcl(sample1)' from USER ID xxxxxx by uing REXX program from any USER ID.
Can anyone please help me with a sample code to achieve the above requirement.


Thanks in advance,
Priya.
Priya86
 
Posts: 2
Joined: Wed Mar 24, 2010 12:54 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx program to submit a JCL from different USER ID.

Postby Robert Sample » Wed Mar 24, 2010 5:09 pm

Code the USER= and PASSWORD= on the job card, and you won't need a REXX solution.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Rexx program to submit a JCL from different USER ID.

Postby Priya86 » Wed Mar 24, 2010 5:17 pm

Thanks Robert.

But I need to do this by using REXX. Can you please help me in doing that. I want to submit the REXX program which in turn has to submit the JCL.


Thanks in advance,
Priya.
Priya86
 
Posts: 2
Joined: Wed Mar 24, 2010 12:54 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx program to submit a JCL from different USER ID.

Postby expat » Wed Mar 24, 2010 5:19 pm

You will probably need to talk to your site security people regarding surrogate user authority.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: Rexx program to submit a JCL from different USER ID.

Postby Robert Sample » Wed Mar 24, 2010 5:20 pm

RACF, and presumably the other security packages, will propagate the user id from the submitter into the submitted job. You cannot override this process with REXX. You can include the USER= and PASSWORD= on the job card, or you can accept that it is not possible to do what you want to do. Your choice.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Rexx program to submit a JCL from different USER ID.

Postby dick scherrer » Wed Mar 24, 2010 11:17 pm

Hello,

Suggest you talk with your security admins if this process is to be submitted by multiple people that do not have the access permissions necessary to run it. . . You should also tell them that you may embed a "more powerful" user-id and password in visable form. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Rexx program to submit a JCL from different USER ID.

Postby Maheshk84 » Fri Apr 16, 2010 4:16 pm

You can queue up the job statements and then submit using SUBMIT command.

uid=xxxxx
pword=pppppp

QUEUE "//Jobname JOB CLASS=P,MSGLEVEL=(1,1),TIME=(30,00),"
QUEUE "// USERID="uid",PASSWORD="pword" "
........

But you should have the authority to use others Userid and password.
Maheshk84
 
Posts: 2
Joined: Fri Apr 16, 2010 4:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx program to submit a JCL from different USER ID.

Postby gc1958 » Sat May 22, 2010 9:17 pm

It is unclear if you are asking

a) Can I submit a job under someone other user's ID,
or
b) Can I create JCL that can be submitted via a REXX script that can be run by any individual.

scenario a is a very unusual request and very likely to never be approved in any reasonably secure z/OS environment.

scenario b is very common and is quite simple. The only thing to overcome is the JOBNAME parameter on the JOB card.
gc1958
 
Posts: 4
Joined: Sat May 22, 2010 1:27 am
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx program to submit a JCL from different USER ID.

Postby DeepakRawat » Tue Jan 24, 2012 1:00 am

/***************REXX*******/                                           
QUEUE,                                                                 
"//JOBNAME JOB 'MYJOB',NOTIFY=&SYSUID                                "
QUEUE,                                                                 
"//STEP1 EXEC PGM=IEFBR14                                             "
QUEUE,                                                                 
"//DD1 DD DSN=ps name to create,DISP=(NEW,CATLG,DELETE),           "
QUEUE,                                                                 
"//       SPACE=(TRK,(3,4),RLSE),UNIT=SYSDA,                          "
QUEUE,                                                                 
"//       DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)                         "
QUEUE,                                                                 
"//SYSPRINT DD SYSOUT=*                                               "
QUEUE,                                                                 
"//SYSOUT   DD SYSOUT=*                                               "
QUEUE,                                                                 
"//SYSIN DD DUMMY                                                     "
QUEUE,                                                                 
"$E                                                                   "
"SUBMIT * END($E)"
DeepakRawat
 
Posts: 1
Joined: Tue Jan 24, 2012 12:55 am
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx program to submit a JCL from different USER ID.

Postby expat » Tue Jan 24, 2012 10:38 am

Priya86 Go talk with your security admin people.

Other code posters What is it with all of this crap of building a JCL deck instream, have you not taken the time to investigate ISPF file tailoring.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post