Date: Thu, 21 Mar 2002 19:33:47 GMT
Reply-To: Tony Harmon <atharmonshirt@REMOVESHIRTSWBELL.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Tony Harmon <atharmonshirt@REMOVESHIRTSWBELL.NET>
Organization: Prodigy Internet http://www.prodigy.com
Subject: Re: print control characters on MVS
Content-Type: text/plain; charset=us-ascii
ghellrieg@T-ONLINE.DE (Gerhard Hellriegel) writes:
> On Thu, 21 Mar 2002 18:21:01 GMT, Tony Harmon
> <atharmonshirt@REMOVESHIRTSWBELL.NET> wrote:
>
> >ghellrieg@T-ONLINE.DE (Gerhard Hellriegel) writes:
> >
> ><snip>
> >>
> >> do you mean that:
> >>
> >> 12 options cc=FORTRAN;
> >> --
> >> 13
> >>
> >> ERROR 13-12: Unrecognized SAS option name, CC.
> >>
> >> My SAS does not know that option! Ok, that was 8.1 on Win.
> >> 8.2 on MVS host brings:
> >>
> >> 51 options cc=FORTRAN;
> >> --
> >> 13
> >> ERROR 13-12: Unrecognized SAS option name, CC.
> >>
> >> as option in the filename statement:
> >>
> >> 52 filename a "int5112.sas.output(test)" cc=FORTRAN;
> >> --
> >> 23
> >> ERROR: Error in the FILENAME statement.
> >> ERROR 23-2: Invalid option name CC.
> >>
> >>
> >>
> >> So you seem to have something other than me! I don't know that option
> >> neither SAS seem to know it!
> >>
> >> Could you provide a peace of the code, where you use that
> >> option?
> >
> >I posted some output using FILE. Here is the output for FILENAME.
> >Unfortunately it's the same...
> >
> >
> >NOTE: The initialization phase used 0.05 CPU seconds and 3015K.
> >1 * REVENUE PROTECTION REPORT RVP00006
> >2
> >3 FILENAME MYFILE 'SS.TEMP.SSRP.RVP00003.PRINT' CC=FORTRAN ;
> >4
> >5 OPTIONS ERRORS=1 PS=60 LS=132 MISSING=' ' ;
> >6 PROC PRINTTO PRINT=MYFILE LOG=SYSOUT ;
> >7 *PROC PRINTTO UNIT = 01 NEW;
> >8
> >
> >ERROR: Unable to assign filename for LOG=C686050.MYFILE.LIST
> >ERROR: Unable to assign filename for LOG=C686050.MYFILE.LIST
> >ERROR: Unable to assign filename for LOG=C686050.MYFILE.LIST
> >NOTE: The SAS System stopped processing this step because of errors.
> >NOTE: The PROCEDURE PRINTTO used 0.00 CPU seconds and 2947K.
> >
> >Thanks,
> >Tony
>
>
> The error comes from your printto procedure. There you reassign the output
> with PRINT= and the LOG with LOG=SYSOUT
I've tried LOG=LOG and I've tried leaving it out. Same message everytime...
>
> SYSOUT is a (system)-logical name which tries to assign the name you see in
> the error message.
> Delete that thing out and try
>
> proc printto print=myfile;
I get the same message no matter what...
>
>
> and once again:
> there is NO CC=FORTRAN option in the FILENAME statement!!!!! If you
> reroute the log to somewhere you might not see that error any more. Maybe
> it disappears in the nirwana! So don't send your LOG anywhere! The error
> will not disappear and nothing is better if you don't see it! For your
> purposes it is enough to send the PRINT to a file which then is sent to
> your AIX machine!
Thanks for your help, but my documentation for SAS 8.0 clearly shows that there
is a CC for the statement FILENAME. This is the documentation that I got from
www.sas.com.
Here it is cut and pasted:
FILENAME
Associates a SAS fileref with an external file
Language element:
statement
Valid:
anywhere in a SAS program
OpenVMS specifics:
valid values for device-type; valid values for external-file; valid values for
host-option-list
Syntax
Details
Reserved Filerefs
Device-Type Keywords
Host-Specific External I/O Statement Options
Using the KEY= Option
Using the KEYVALUE= Option
Using Compound Expressions
Using SAS Variables
Summary of External I/O Statement Options
Printer Options in the FILENAME and FILE Statements
Examples
Example 1: Associating a Fileref with an External File
Example 2: Using a File as Input to an INFILE Statement
Example 3: Using Printer Options
See Also
Syntax
FILENAME fileref <device-type>
'external-file' <host-option-list>;
FILENAME fileref device-type <'external-file'>
<host-option-list>;
Note: This is a simplified version of the FILENAME statement syntax. For the complete syntax and its
explanation, see the FILENAME statement in SAS Language Reference: Dictionary.
fileref
is any valid fileref and can be up to eight characters long. The first character must be a letter (A to Z), an
underscore (_), a dollar sign ($), a pound sign (#), or an at sign (@). Subsequent characters can be any
of these characters, or they can be numbers. Neither OpenVMS nor the SAS System distinguishes
between uppercase and lowercase letters in filerefs or in filename specifications. This is a required
argument. See Reading from and Writing to OpenVMS Commands (Pipes) for information on assigning a
fileref to a pipe to read from and write to OpenVMS commands.
The following are some examples of valid filerefs:
TEST_1
MYFILE
abc123
The following are some examples of invalid filerefs:
ALONGFILENAME (longer than eight characters)
123_test (begins with a number)
TEST%X (contains an invalid character (%)).
device-type
specifies an output device. For details about device types, see Device-Type Keywords. The device-type
keyword must follow fileref and must precede external-file (if an external file is used).
'external-file'
can be any valid file specification in quotation marks. The file specification must be a valid OpenVMS
pathname to the external file that you want to access; therefore, the level of specification depends on
your location in the directory structure. The number of characters in the quoted string must not exceed
the maximum filename length that OpenVMS allows (255 characters).
Under OpenVMS, you can specify concatenations of files when reading and writing external files from
within the SAS System. Concatenated files consist of two or more file specifications, enclosed in
quotation marks and separated by commas. The following is an example of a valid concatenation
specification:
filename alldata 'test.data1, test.data2,
test.data3';
For a complete discussion, see Using OpenVMS Pathnames to Identify External Files
For Version 8, if you specify a version number for the file in a FILENAME statement, the version
number of the file is not increased. For example, the following FILENAME statement will produce only
one file, test.dat;1:
filename myfile 'test.dat;1';
data;
file myfile;
put 'hello';
run;
data;
file myfile;
put 'hello again';
run;
For more details, see Using OpenVMS Pathnames to Identify External Files. For more information about
valid OpenVMS pathnames, refer to OpenVMS User's Manual.
host-option-list
names any of the following external I/O statement options:
ALQ=
KEYVALUE=
NEW
CC=
LINESIZE=
OLD
DEQ=
LRECL=
PAGESIZE=
FAC=
MBC=
RECFM=
GSFCC=
MBF=
SHR=
KEY=
MOD
These options control how the external file is processed and are specific to the OpenVMS environment.
For information about these options, see Host-Specific External I/O Statement Options.
Many of the DCL print qualifiers are also supported as host options in the FILENAME and FILE
statements. For details, see Printer Options in the FILENAME and FILE Statements.
Note: When using the PIPE device, only the LRECL= host option is supported.
Obviously our shops are set up differently. Again, thanks for your help. I'll get it
figured out.
Thanks,
Tony