X-Mailer: ELM [version 2.2 PL16]
Newsgroups: bit.listserv.sas-l
Date:         Wed, 7 Oct 1992 15:44:26 CDT
Reply-To:     "(R. Snyder)" <rsnyder@LOBBY.TI.COM>
From:         "(R. Snyder)" <rsnyder@LOBBY.TI.COM>
Subject:      Re: More on -NOSYNTAXCHECK ( -N$SYNTAXCHECK ? )
Comments: To: PFEIFER_G@CUBLDR.COLORADO.EDU
Comments: cc: sas-l@uga.cc.uga.edu
              Research & Information,              492-6743" at Oct 6,
              92 11:25 am

SUBJECT:   More on OBS set to 0
SUMMARY:   NOSYNTAXCHECK ( N$SYNTAXCHECK ? )
REL/PLTF:  6.07/HP300
E-ADDR:    rsnyder@lobby.ti.com
NAME:      Bob Snyder
COMPANY:   Texas Instruments, Sherman, TX
PHONE:     (903) 868-5799
FAX:       (903) 868-7240
>
> ----------------------------------------------------------------------
> content:  query
> SUMMARY:  how to avoid having obs set to 0 after a non-fatal error
> REL/PLTF: SAS 6.07, MVS/ESA, IBM309x clone
> E-ADDR:   pfeifer_g@cubldr.colorado.edu
> NAME:     Gary Pfeifer
> PH/ADDR:  303/492-6743   Univ of Colorado   CB 108   Boulder CO 80302
> ----------------------------------------------------------------------
>
Gary,

I did some more playing around after trying "options nosyntaxcheck" and
getting a message saying the oprion was only valid at SAS startup. The
following log excerpts show the difference in behavior when -NOSYNTAXCHECK
is added to the command line to start SAS. Hope this sheds more light.

Regards,
Bob

-------------------------------------------------------------------------------
Invoked by: SAS aprog.sas
-------------------------------------------------------------------------------
1          %macro a;
2
3            data new;
4              set sasuser.houses /* ASSIST sample data set */
5            run;
6
7            proc print data = sasuser.houses;
8            run;
9
10         %mend a;
11
12         %a
ERROR: File WORK.RUN.DATA does not exist.ERROR: File WORK.RUN.DATA does not
 exist.ERROR: File WORK.RUN.DATA does not exist.

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
 NOTE: No observations in data set.
WARNING: The data set WORK.NEW may be incomplete.  When this step was stopped
 there were 0 observations and 6 variables.
NOTE: DATA statement used:
      real time           0.349 seconds
      cpu time            0.060 seconds

/******************** There is no output from PROC PRINT ****************/

NOTE: PROCEDURE PRINT used:
      real time           0.092 seconds
      cpu time            0.020 seconds

-------------------------------------------------------------------------------
Invoked by: SAS -nosyntaxcheck aprog.sas
-------------------------------------------------------------------------------
1          %macro a;
2
3            data new;
4              set sasuser.houses /* ASSIST sample data set */
5            run;
6
7            proc print data = sasuser.houses;
8            run;
9
10         %mend a;
11
12         %a
ERROR: File WORK.RUN.DATA does not exist.ERROR: File WORK.RUN.DATA does not
 exist.ERROR: File WORK.RUN.DATA does not exist.

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.NEW may be incomplete.  When this step was stopped
 there were 0 observations and 6 variables.
NOTE: DATA statement used:
      real time           0.349 seconds
      cpu time            0.060 seconds

/********************* There is output from PROC PRINT ******************/

NOTE: The PROCEDURE PRINT printed page 1.
NOTE: PROCEDURE PRINT used:
      real time           0.680 seconds
      cpu time            0.180 seconds