Page 1 of 1

Rexx program to submit a JCL from different USER ID.

PostPosted: Wed Mar 24, 2010 1:18 pm
by Priya86
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.

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

PostPosted: Wed Mar 24, 2010 5:09 pm
by Robert Sample
Code the USER= and PASSWORD= on the job card, and you won't need a REXX solution.

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

PostPosted: Wed Mar 24, 2010 5:17 pm
by Priya86
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.

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

PostPosted: Wed Mar 24, 2010 5:19 pm
by expat
You will probably need to talk to your site security people regarding surrogate user authority.

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

PostPosted: Wed Mar 24, 2010 5:20 pm
by Robert Sample
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.

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

PostPosted: Wed Mar 24, 2010 11:17 pm
by dick scherrer
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. . .

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

PostPosted: Fri Apr 16, 2010 4:16 pm
by Maheshk84
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.

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

PostPosted: Sat May 22, 2010 9:17 pm
by gc1958
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.

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

PostPosted: Tue Jan 24, 2012 1:00 am
by DeepakRawat
/***************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)"

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

PostPosted: Tue Jan 24, 2012 10:38 am
by expat
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.