> I put 'su' command before others, but it doesn't work.

Try piping the commands to su, like this:

//STEP   EXEC PGM=BPXBATCH
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDPARM DD *
SH ;
echo "The mkdir a command runs as the job's userid";
mkdir a;
echo "The mkdir b command runs as superuser, if the userid is authorized";
echo "mkdir b" | su;
/*

Kurt Quackenbush
IBM  |  z/OS SMP/E and z/OSMF Software Management  |  ku...@us.ibm.com

Chuck Norris never uses CHECK when he applies PTFs.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to