HP3000-L Archives

April 1999, Week 3

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:
"Paul H. Christidis" <[log in to unmask]>
Reply To:
Date:
Fri, 16 Apr 1999 09:22:00 -0700
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (45 lines)
Cary,

One option would be to make the program 'tell' you what the file name is.  If
you have the source just add the needed code to assign the name of the file to a
specific CI variable and after the program ends 'retrieve' the file name from
the CI variable.

You could use the HPPUTCIVAR (sp?) intrinsic or issue programmatically a
'setvar' command.

Regards
Paul H. Christidis

____________________Reply Separator____________________
Subject:    Finding A File
Author: [log in to unmask]
Date:       4/15/99 5:02 PM

Greetings All,

I'm trying to figure out how to find the name of a file whose name includes
part of the date and time on which it was created.

A third -party COBOL program creates a file which always starts with "FA".
The third character is the 2nd digit of the day portion of the date, the 4th
thru 7th characters is the time, military style, and the last character is
an "A".  An example: FA51306A  is a file created on the fifth, fifteenth, or
twenty fifth day of the month at 1:06 PM.   I don't have much experience
with writing jobstream commands, so I'm looking for some guidance.

I'd like to test for the existence of the file in the jobstream right after
the execution of the program that creates the file, but I have a question
about the time portion of the file name.  For example, if the file is
created at 1:06 PM, (the program uses an  ACCEPT TIME to ascertain the
time), and the job finishes at 1:10 PM, is it even possible to then find the
file?  That is, is there a way to construct the correct file name at some
time later than when the file was created?

I know this is a bit odd, but I'm trying to come up with a work-around for a
program bug.

Any help would be apprectiated.

Cary Marshall

ATOM RSS1 RSS2