BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Showing results for 
Search instead for 
Do you mean 

lockword on program

Regular Advisor

lockword on program

I would like to secure one of our programs with a lockword, but my problem lies when this program is run in batch. I do not want to imbed the password in a jobstream, defeats the purpose of the lockword. Is there a way I can do this with some variable which is prompted for at the time a job is started and the value of this variable passed down to any other job that may be streamed from the 'parent'?
TIA
Everyday I beat my own previous record for number of consecutive days I've stayed alive.
3 REPLIES
Occasional Visitor

Re: lockword on program

Create a command file like this:
parm mypw
RUN EDITOR.PUB.SYS;INFO="t jpassin;C #$pw# TO #!mypw# IN ALL;K X1,UNN;E"
stream x1
purge x1;noshowerrors


And a job with the varible in it (like $pw):
!JOB TECHNICH,MANAGER/$pw.SYS
!PAUSE 10
!TELL MANAGER.SYS;DONE
!EOJ

Then execute the command file andprovide the varible value like this:
passinx mypass
Trusted Contributor

Re: lockword on program

If you set JOBSECURITY to LOW and specify the USER option you can allow certain users to omit a job's password. Type HELP JOBSECURITY ALL at a command prompt. Using this, you will not have to include the password in the !JOB heading nor supply it.
Regular Advisor

Re: lockword on program

closing all old open threads
Everyday I beat my own previous record for number of consecutive days I've stayed alive.