W dniu 26.08.2026 o 17:42, Paul Gilmartin pisze:
On Wed, 26 Aug 2026 11:24:21 -0300, Philippe Leite wrote:
Hi Radoslaw,
In this case, I recommend creating a simple Shell script to do what you
want.
Indeed. Even as it's hardly practical to control DFSORT with
a shell script, it's folly to control UNIX utilities with JCL.
Well... There many ways to skin a cat.
In fact, it would be enough to change userid to some with UID(0) or
temporarily change this users' UID. Or use UNIXPRIV profiles.
Or perform same commands manually. Or use a script. Or...
However sometimes simple is good.
I had to adjust *the job* (JCL with DD *) in order to make it working.
No other unix files, no RACF changes.
Unfortunately embedding unix commands into JCL and keeping RACF setup
unaltered seems to be syntactically hard, but... still feasible.
I wish I would have the following:
//STEP EXEC PGM=some-pgm
//SOME DD *
su /*if needed*/
cd /some/directory
some_cmd -with -some -parms
/*
Just as simple as above. With no &&&& tricks, no SH echo
"command&&command" | su gimmicks, etc.
--
Radoslaw Skorupka
Lodz, Poland
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN