Hi Terry,
Please observe that the file designators DDFS, DDFS.SYSOPER
and DDFS.SYSOPER.SYS ARE NOT THE SAME ! (sorry for shouting!).
In your example you have not declared a designator
for *DDFS.SYSOPER.SYS, and so MPE does not know
what it is, but you have declared a file designator DDFS.
If you change your echo to ECHO !DIR > *DDFS , the thing will work.
Alternatively, you could change your file designator to
FILE DDFS.SYSOPER.SYS,OLD
That will also make it work.
You may find it helpful to use a designator which is not related in name
to the output file to avoid confusion until you get the hang of it, eg.,
FILE LOGFILE.HERE.THERE=DDFS.SYSOPER,OLD
ECHO !DIR >> *LOGFILE.HERE.THERE
or
FILE DINGO=DDFS.SYSOPER,OLD
ECHO !DIR >> *DINGO
Cheers,
Tad.
-----Original Message-----
From: Terry Prime <[log in to unmask]>
To: [log in to unmask] <[log in to unmask]>
Date: 25 May 1999 02:45
Subject: Re: [permanent file]
>I have rewritten it as a batch job (not a pretty version as yet),instead of
>a command file that is run interactively and still get the same error.
>>
>!JOB TSTCOPY,MANAGER.SYS,SYSOPER;HIPRI;PRI=CS;OUTCLASS=LP,9
>!SETVAR DATE,"!HPMONTH/!HPDATE/!HPYEAR"
>!SETVAR DIR,"@[log in to unmask]@[log in to unmask]@.@3000@"
>!SETVAR NEW,";DIRECTORY;INTER;PROGRESS=3"
>!SETVAR NEW1,";COMPRESSION=HIGH;MAXTAPEBUF;DATE>=!DATE"
>!COPY DDFS.SYSOPER,DDFS1.SYSOPER
>!CONTINUE
>!PURGE DDFS.SYSOPER.SYS
>!SETJCW CIERROR=0
>!BUILD DDFS.SYSOPER;REC=,,F,ASCII;DISC=1
>!FILE DDFS=DDFS.SYSOPER,OLD;DEV=DISC
>!SETJCW CIERROR=0
>!ECHO !DIR>*DDFS.SYSOPER.SYS
>!ECHO !NEW!NEW1>>*DDFS.SYSOPER.SYS
>!ECHO ;ONLINE=START>>*DDFS.SYSOPER.SYS
>!DELETVAR DATE
>!DELETEVAR DIR
>!DELETEVAR NEW
>!DELETEVAR NEW1
>!EOJ
>
>On the first ECHO command receive :-
>INVALID FILE REFERENCE (FSERR 54)
>Couldn't open output redirection file, command failed. (CIERR 9425)
>Remainder of job flushed.
>I can not see anything obvious to show that the code is wrong. There must
>be some other reason. We are on 5.5 powerpatch 6 with Y2K patches applied.
>regards ... Terry
>
><><><><><><><><><><><><><><><><><><><><><><><><>
>Growing old is mandatory, acting old is optional
>
>Terry Prime
>Client Services Officer
>Queensland University of Technology
>(07) 38641784
>
|