Logon TSO ID VIA BATCH JOB



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Logon TSO ID VIA BATCH JOB

Postby rayngerfan » Sun May 03, 2009 11:40 pm

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
rayngerfan
 
Posts: 51
Joined: Fri Apr 17, 2009 4:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Logon TSO ID VIA BATCH JOB

Postby dick scherrer » Mon May 04, 2009 1:14 am

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'
//*     
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Logon TSO ID VIA BATCH JOB

Postby rayngerfan » Tue May 05, 2009 3:08 am

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.
rayngerfan
 
Posts: 51
Joined: Fri Apr 17, 2009 4:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Logon TSO ID VIA BATCH JOB

Postby dick scherrer » Tue May 05, 2009 3:26 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Logon TSO ID VIA BATCH JOB

Postby rayngerfan » Tue May 05, 2009 5:31 pm

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.
rayngerfan
 
Posts: 51
Joined: Fri Apr 17, 2009 4:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Logon TSO ID VIA BATCH JOB

Postby dick scherrer » Tue May 05, 2009 11:51 pm

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Logon TSO ID VIA BATCH JOB

Postby rayngerfan » Thu May 07, 2009 6:55 pm

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
rayngerfan
 
Posts: 51
Joined: Fri Apr 17, 2009 4:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Logon TSO ID VIA BATCH JOB

Postby dick scherrer » Fri May 08, 2009 12:17 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post