Hello folks:

This has stymied myself for a coupla hours so I figure that I need the
wisdom of the 3000-l:

In a Job I wish to perform a LISTF to a Temp file that I then use as input.
I want to select out of this Temp file Session Numbers for passing to, say,
an Abortjob command. Presently, I am attempting to restream the output of
the LISTF to an INPUT command using the backreference "<".

The challenge seems to be that I am only getting the first occurrence (i.e.
first record) of the LISTF. So, not a help if I have say a half-dozen
sessions I want to get off the system at a given time.

Yes, there are better ways of doing this thing, so:

1) a better way to do this is welcome, and

2) why does this approach through the INPUT JOBNAM < INPFIL construct
where INPFIL is the TEMP file from LISTF, not function?

I placed the INPUT in a WHILE loop which loops forever(!).

TIA

* To join/leave the list, search archives, change list settings, etc *
*     please visit http://raven.utc.edu/archives/hp3000-l.html       *