Re: lockword on program (211 Views)
Reply
Regular Advisor
DavidJ
Posts: 119
Registered: ‎05-25-2000
Message 1 of 4 (211 Views)

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.
Occasional Visitor
Gibson Nichols
Posts: 1
Registered: ‎05-26-1998
Message 2 of 4 (211 Views)

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
Scott Hower
Posts: 127
Registered: ‎05-28-2001
Message 3 of 4 (211 Views)

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
DavidJ
Posts: 119
Registered: ‎05-25-2000
Message 4 of 4 (211 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.