HP3000-L Archives

April 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Ted Ashton <[log in to unmask]>
Date:
Thu, 12 Apr 2001 18:42:50 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
Thus it was written in the epistle of Penney, John,
> 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

That depends somewhat on what you are wanting to accomplish.  If it is
really :ABORTJOB you are doing, you may want to examine the help for
:ABORTJOB.  It's a lot more capable now than it used to be.  You can give it
a job or session name and it will find the number and do the abort.

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

The answer to that question (as well as a number of solutions to the problem)
is found in

  http://raven.utc.edu/cgi-bin/WA.EXE?A2=ind9912C&L=hp3000-l&P=R2554

and I quote,

> The basic problem is that the CI's IO redirection opens the file and causes
> the record pointer to be set to the beginning.  This is done each time the IO
> redirdction is encountered by the CI.  Thus, if you try to read from a file
> in a WHILE loop using the INPUT command, you will read only the first record
> each iteration.  Below are some ways to overcome this restriction. . . .

HTH,
Ted
--
Ted Ashton ([log in to unmask]), Info Sys, Southern Adventist University
          ==========================================================
War can protect; it cannot create.
                         -- Whitehead, Alfred North
          ==========================================================
         Deep thoughts to be found at http://www.southern.edu/~ashted

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

ATOM RSS1 RSS2