02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System Options under z/<strong>OS</strong> FILEEXT= System Option 433<br />

IGNORE<br />

ignores the part of the name after the period and specifies that only the part be<strong>for</strong>e<br />

the period is to be used.<br />

INVALID<br />

disallows any member name with an extension.<br />

ASIS<br />

accepts the member name as it is. These member names must con<strong>for</strong>m to the<br />

naming conventions of partitioned data sets.<br />

Details<br />

For compatibility with <strong>SAS</strong> on other plat<strong>for</strong>ms, the FILEEXT= system option enables<br />

you to write portable <strong>SAS</strong> programs that will run on systems that support file<br />

extensions and on systems that do not support file extensions.<br />

Portable <strong>SAS</strong> programs can access external files with file extensions when you run<br />

those programs in environments such as Windows and UNIX. When you run those<br />

programs in z/<strong>OS</strong>, and when the program accesses members in partitioned data sets,<br />

the value of FILEEXT= determines how the file extensions are interpreted.<br />

Member names in partitioned data sets must consist of one to eight alphanumeric<br />

characters starting with a letter or with one of the following national characters: $, #, @.<br />

A member name extension is an optional part of the member name that follows a period.<br />

Example of FILEEXT=VERIFY<br />

In this example, <strong>SAS</strong> verifies that the part of the name that follows the period<br />

corresponds to the last level of the partitioned data set name. If it does not, an error<br />

message is written to the <strong>SAS</strong> log:<br />

options fileext=verify;<br />

/* allocate a PDS */<br />

filename out2 ’myid.fileext.sas’ disp=old;<br />

data _null_;<br />

/* the member name is ’versas’*/<br />

file out2(versas.sas);<br />

put ’text’;<br />

run;<br />

Example of FILEEXT=IGNORE<br />

Using the IGNORE value causes the extension, if present, to be ignored:<br />

options fileext=ignore;<br />

/* allocate a PDS */<br />

filename out2 ’myid.fileext.testsrc’ disp=old;<br />

data _null_;<br />

/* the member name is ’dotnd’ */<br />

file out2(dotnd.some);<br />

put ’text’;<br />

run;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!