Name: openvms1 Date: May 30, 2005 at 23:42:31 Pacific Subject: command procedure searching tape da OS: OpenVMS V7. 3-2 CPU/Ram: Alpha
Comment:
Hi. I need to create a job that runs each monday and I need to setup a command procedure that searches the tape datadase for tapes that were allocated on the previous friday.
If u know the actual device names (MKXNNN), then a small .com file can be made, which repeats for each the the tape device names. for the .com file: u have to start with assigning the sys$output to a file. see the o/p in the file and check that the required information (allocated on "date","time ") is available at a required line and offset in the line. use the $getdate to get the correct date which u want. using the F$parse or F$search, compare with date available in the above stated field in the o/p file.
if the match is right then signal a flag, else continue to next drive.
any ways why u need to know what somebody did on "friday", any problem!!??
what happens is we allocate the tapes on friday but they get picked up the following monday and are sent to melb. and I want to schedule a job on monday to search for those tapes so I we have a list of the tapes going offsite.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE