Hi OS2 Rules,
I did that in my last run, after looking up the OPTIONS statement. It stopped abending but the job finished with a return code = 8. It looks as if it is ignoring my FILEEXIST condition statement completely. I even moved it up immediately after the FILENAME statement and no change.
1
2 THE SAS SYSTEM
2 OPTIONS NOERRABEND;
3
4 DATA _NULL_;
5 DTRUN=TODAY()-1;
6 DTRUN1=(PUT(DTRUN,YYMMDD6.));
7 CALL SYMPUT('DYYMMDD',DTRUN1);
8 STOP;
9 RUN;
NOTE: THE DATA STATEMENT USED THE FOLLOWING RESOURCES:
CPU TIME - 00:00:00.00
ELAPSED TIME - 00:00:00.04
EXCP COUNT - 23
TASK MEMORY - 3222K (123K DATA, 3099K PROGRAM)
TOTAL MEMORY - 16989K (6048K DATA, 10941K PROGRAM)
NOTE: THE ADDRESS SPACE HAS USED A MAXIMUM OF 664K BELOW THE LINE AND 17508K ABO
9 !
10
11 DATA LNX_USERS;
12
13 FILENAME LXGSTMEM "SYS90H.LNXMEM.D&DYYMMDD" DISP=SHR;
ERROR: SVC99 ERROR RC=4, REASON=1708 : IKJ56228I DATA SET SYS90H.LNXMEM.D110109
ERROR: SVC99 ERROR RC=4, REASON=1708 : IKJ56228I DATA SET SYS90H.LNXMEM.D110109
ERROR: SVC99 ERROR RC=4, REASON=1708 : IKJ56228I DATA SET SYS90H.LNXMEM.D110109
ERROR: ERROR IN THE FILENAME STATEMENT.
ERROR: ERROR IN THE FILENAME STATEMENT.
ERROR: ERROR IN THE FILENAME STATEMENT.
13 !
14
15 IF NOT FILEEXIST("SYS90H.LNXMEM.D&DYYMMDD") THEN ABORT RETURN 4;
16
17 INFILE LXGSTMEM DELIMITER=',' DSD FIRSTOBS=2;
18
19 INPUT GUEST :$8.
20 DATETIME :$15.
21 TOTMEM :8.
22 KBMEMFR :8.
23 KBMEMUS :8.
24 PCTMEMUS :5.2
25 KBBUFFRS :8.
26 KBCACHED :8.
27 KBSWPFR :8.
28 KBSWPUS :8.
29 PCTSWPUS :5.2
30 KBSWPCAD :8.;
31
32 LNXDATE = TODAY()-1;
33
ERROR: NO LOGICAL ASSIGN FOR FILENAME LXGSTMEM.
ERROR: NO LOGICAL ASSIGN FOR FILENAME LXGSTMEM.
ERROR: NO LOGICAL ASSIGN FOR FILENAME LXGSTMEM.
NOTE: THE SAS SYSTEM STOPPED PROCESSING THIS STEP BECAUSE OF ERRORS.
NOTE: SAS SET OPTION OBS=0 AND WILL CONTINUE TO CHECK STATEMENTS. THIS MAY CAUSE
WARNING: THE DATA SET WORK.LNX_USERS MAY BE INCOMPLETE. WHEN THIS STEP WAS STOP
NOTE: THE DATA STATEMENT USED THE FOLLOWING RESOURCES:
CPU TIME - 00:00:00.02
ELAPSED TIME - 00:00:00.21
EXCP COUNT - 98
TASK MEMORY - 3806K (120K DATA, 3686K PROGRAM)
TOTAL MEMORY - 17249K (6048K DATA, 11201K PROGRAM)
NOTE: THE ADDRESS SPACE HAS USED A MAXIMUM OF 664K BELOW THE LINE AND 17772K ABO
3 THE SAS SYSTEM
ERROR: ERRORS PRINTED ON PAGE 2.
ERROR: ERRORS PRINTED ON PAGE 2.
ERROR: ERRORS PRINTED ON PAGE 2.
NOTE: THE SAS SESSION USED 2.32 CPU SECONDS AND 17249K.
NOTE: THE ADDRESS SPACE HAS USED A MAXIMUM OF 664K BELOW THE LINE AND 17772K ABO
NOTE: SAS INSTITUTE INC., SAS CAMPUS DRIVE, CARY, NC USA 27513-2414