Page 1 of 1
Logon TSO ID VIA BATCH JOB
Posted:
Sun May 03, 2009 11:40 pm
by rayngerfan
To Whom It May Concern:
Is it possable to logon a TSO ID via a batch job? I was thinking maybe program IKJEFT01could do this task. Any help is greatly appreciated. Thanks
Re: Logon TSO ID VIA BATCH JOB
Posted:
Mon May 04, 2009 1:14 am
by dick scherrer
Hello,
I was thinking maybe program IKJEFT01could do this task
You can "run TSO" in batch using IKJEFT01. This jcl would rename a datasaet:
//STEP01 EXEC PGM=IKJEFT1B
//*
//SYSTERM DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD DUMMY
//SVHCON DD DUMMY
//*
//SYSTSIN DD *
RENAME 'old.data.set' 'new.data.set'
//*
Re: Logon TSO ID VIA BATCH JOB
Posted:
Tue May 05, 2009 3:08 am
by rayngerfan
Hi Dick
I apppreciate your response to my question. I was curious if it was possible to submit a batch job that would log on a ID to TSO. We have to recycle a TSO id every 12 hours that is permantly logged onto TSO. I can cancel the ID via a batch job, by issuing the cancel command, but I don't know if it's possible to log on a TSO ID via a batch job.
Re: Logon TSO ID VIA BATCH JOB
Posted:
Tue May 05, 2009 3:26 am
by dick scherrer
You're welcome
How is the id currently logged on each day? When you "display active", does this is show as a TSUxxx JobID?
Started tasks (STCs) are often initiated by a batch or scheduler submission. I don't know if this is do-able for a tso user task.
Re: Logon TSO ID VIA BATCH JOB
Posted:
Tue May 05, 2009 5:31 pm
by rayngerfan
Hi Dick
The ID can be displayed in SDSF TBPROD6. The ID is manually loged on to TSO. Since the ID needs to be recycled, I want to setup a batch job that will cancell the ID which I can do, but I want the job to log the I back on in the 2nd.
Re: Logon TSO ID VIA BATCH JOB
Posted:
Tue May 05, 2009 11:51 pm
by dick scherrer
Hello,
The ID is manually loged on to TSO
This logon happens at some terminal? I don't know if you can start an id at some terminal from a batch job. What does this id "do" - what service does it provide?
The ID can be displayed in SDSF TBPROD6.
That is probably the "JOBNAME". What is the JobID?
Re: Logon TSO ID VIA BATCH JOB
Posted:
Thu May 07, 2009 6:55 pm
by rayngerfan
Hi Dick
I not sure where to find the JOBID. TBPROD6 is the job name when displayed in SDSF.
JOBNAME STEPNAME PROCSTEP JNUM SYSN C PO SR SIO CPU% EXCP-CNT TYPE
TBPROD6 APLLOGON TCPD0311 60655 DSYS LO TI 0.00 0.00 418 TSU
Re: Logon TSO ID VIA BATCH JOB
Posted:
Fri May 08, 2009 12:17 am
by dick scherrer
Hello,
On your system this is shown as jnum (60655) and type (TSU). On mine it shows as jobid (TSU60655). The TSU identifies this as a tso user.
To repeat:
This logon happens at some terminal? I don't know if you can start an id at some terminal from a batch job. What does this id "do" - what service does it provide?
Why is this id logged on every day? What would happen if this is was not logged on?