Re: Compile and run later

"ScottC" <[email protected]>
Newsgroups gmane.comp.emulators.turnkey-mvs
Message-ID <[email protected]>
--- In [email protected], "gary_lee_phillips" <tivo.overo@...>
wrote:
>
> ALLOC DD(ft06f001) DA(filename) [to print to file 'filename']
>
> Use 'help allocate' for more details about the ALLOC command. It is
the TSO equivalent of the DD statement in JCL.

Conceptually, from a user perspective, your TSO session is just another
"batch" job that is running.  Try issuing the command, "LISTA ST HIS" at
the TSO READY prompt or at RPF option 6.  The results show all the
DDNAMES that are allocated to your "job" (TSO session).

To run a program interactively under TSO, you just need to be sure that
all of your DDNAME's are predefined before you issue the "CALL".  This
can be issued from the TSO READY prompt or within a CLIST.  BTW, if you
write a CLIST, you can pre-allocate all the DD's in the CLIST and then
issue the CALL.  So, you (or the user), could just issue a one word
command, such as GRID, and then the CLIST does the rest.  Look for the
DD, SYSPROC in the output from "LISTA ST HIS".  The datasets allocated
to SYSPROC are the ones that are searched for CLISTs.

A prior post showed the ALLOCATE statement using "FI" instead of "DD" as
is shown above.  They are interchangeable, but my preference is to use
"DD" since that makes more sense to me.

Good luck, ScottC
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.