I need to issue several commands in batch, that means JCL job.
I know some ways to do it, but... but before I have to issue su command to get root authorities.
I put 'su' command before others, but it doesn't work.
Example:
//K EXEC PGM=IKJEFT01
//SYSTSIN DD *
 oshell su;mkdir a;mkdir b;other commands...

The stream works OK, but second and remaining commands failed due to lack of root authority.

Any clue how to use su and the commands?
I would like to avoid putting all the commands to the shell script, as that require puting the script into filesystem. Less portable.
Or maybe there is a method to run the script embedded in the jobstream?

--
Radoslaw Skorupka
Lodz, Poland

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to