Page 1 of 1

How to execute TSO as a batch?

Posted: Sun Mar 09, 2014 4:35 pm
by Pragya
Hi,

I've seen some dialogues stating using "TSO in batch". Please tell me, how to execute TSO as a batch? And why is it called so?

Re: How to execute TSO as a batch?

Posted: Mon Mar 10, 2014 12:24 pm
by zprogrammer
You can make use of the program IKJEFT01 to execute in Batch mode.
And why is it called so?
If you could clarify more you could get better replies

Re: How to execute TSO as a batch?

Posted: Mon Mar 10, 2014 1:40 pm
by enrico-sorichetti
Please tell me, how to execute TSO as a batch? And why is it called so?
when logging on to TSO the tso controller starts a procedure ( dependent on Your TSO Profile )
which executes the PROGRAM IKJEFT01
IKJEFT01 in a bare FOREGROUND TSO session reads input/commands from Your 3270 screen and writes back to the same

but You can invoke IKJEFT01 using plain JCL
and it will read input/commands from the DDNAME SYSTSIN
it will write to the DDNAME SYSTSPRT

that' all

Re: How to execute TSO as a batch?

Posted: Mon Mar 10, 2014 3:38 pm
by Anuj Dhawan
Time Sharing Option/Extensions allows end-users to create an interactive session with the z/OS system. TSO provides a single-user logon capability and a basic command prompt interface to z/OS - these commands, at times, needs to be executed in foreground and that's one of the example when you use "TSO in batch" and to do that IKJEFT01 is called, as has been already told. And because TSO 'was meant for interactive sessions", executing it using a JCL was called as "TSO in batch".

PS.: I've made some assumptions in my post to make the answer to relate to the question. Hopefully, it does not deter from the facts too much.

Re: How to execute TSO as a batch?

Posted: Mon Mar 10, 2014 5:13 pm
by Quasar Chunawala
Before TSO all kind of mainframe processing was batch. You'd send your deck of punched cards and tapes to a central processor complex where an operator would execute the work on your behalf and return you the print out, if you were fortunate and everything ran well.

The invention of a batch program that could monitor connected devices such as a display workstation, was a breakthrough! This opened up the machine room to programmers through a network of terminals in an enterprise. Every TSO/E session is a special kind of a batch job. TSO is like a big ear, that listens to a terminal(to which you are logged on). Its an invocation of IKJEFT01.

Re: How to execute TSO as a batch?

Posted: Mon Mar 10, 2014 5:19 pm
by enrico-sorichetti
the invention of a batch program that could monitor connected devices such as a display workstation, was a breakthrough!

:o
Every TSO/E session is a special kind of a batch job.
nope :mrgreen:

a TSO session is a tso session
if it was some kind of job it would be classifies as JOB not as TSO
did You ever notice it in a SDSF display that

started tasks get numbered STCxxxxx
batch jobs get numbered JOBxxxxx
INTERACTIVE/FOREGROUND/TERMINAL tso sessions get numbered TSOxxxxx

Re: How to execute TSO as a batch?

Posted: Mon Mar 10, 2014 6:00 pm
by Quasar Chunawala
Enrico,

:D Just one more question though, don't TSO(user) address spaces get swapped out, like other jobs? I thought so!

Re: How to execute TSO as a batch?

Posted: Mon Mar 10, 2014 6:10 pm
by enrico-sorichetti
certainly they do ...
all depends on the WLM definitions

jus a quick and dirty concept

for a batch job the fall into disgrace for overuse of resources COULD/MIGHT be non existent, very slow
once the classification has been done correctly
a BATCH invocation of IKJEFT01 is regarded by WLM as a BATCH job

for a FOREGROUND TSO the objective is to guarantee a consistent response time for well behaved users
so the fall into disgrace could be very steep ...
a foreground compilations for example might result at the end to receive less resources than a BATCH job

and the user might sit there for MINUTES staring at an unresponsive screen

Re: How to execute TSO as a batch?

Posted: Tue Mar 11, 2014 12:53 pm
by Quasar Chunawala
Read a couple of columns on the Internet. My notion of any FOREGROUND program/application was, it's got to always stay in main storage. It doesn't have to!

A TSO user address space can be logically swapped out during the "think-time". And even physically swapped after that.

Re: How to execute TSO as a batch?

Posted: Mon Mar 31, 2014 8:24 pm
by Pragya
Thanks all.