Chapter Contents |
Previous |
Next |
SAS Companion for the OS/390 Environment |
Although OSIRIS runs only under OS/390 and CMS, the SAS OSIRIS engine accepts an OS/390 data dictionary from any other operating environment that is running the SAS System. The layout of an OSIRIS data dictionary is the same on all operating environments. The data dictionary and data files should not be converted between EBCDIC and ASCII, however, because the OSIRIS engine expects EBCDIC data.
Assigning a Libref to an OSIRIS File |
LIBNAME libref OSIRIS 'physical-filename ' DICT='dictionary-file-name'; |
LIBNAME(libref, 'physical-filename ', 'OSIRIS', "DICT='dictionary-file-name'"); |
If you previously used a TSO ALLOC command or a JCL DD statement to assign a DDname to the OSIRIS file, you can omit the physical-filename in the LIBNAME statement or function. However, you must still use the DICT= option, because the engine requires both files. (See Accessing OSIRIS Files.)
Referencing OSIRIS Files |
Under OSIRIS, the contents of the dictionary file determine the file layout of the data file. A data file has no other specific layout.
You can use a dictionary file with an OSIRIS data file only if the data file conforms to the format that the dictionary file describes. Generally, each data file should have its own DICT file.
Examples of Accessing OSIRIS Files |
libname xxx osiris 'my.osiris.data' dict='my.osiris.dict'; proc contents data=xxx._first_; proc print data=xxx._first_; run;
The next example uses JCL. In this example, the DD statements can be omitted if the physical names are referenced in the LIBNAME statement.
//JOBNAME JOB //STEP1 EXEC SAS //OSIR DD DSN=MY.OSIRIS.DATA,DISP=SHR //DICT DD DSN=MY.OSIRIS.DICT,DISP=SHR //SYSIN DD * /* Any one of the following libname */ /* statements can be used. */ libname osir osiris dict=dict; libname xxx osiris 'my.osiris.data' dict=dict; libname osir osiris dict='my.osiris.dict'; /* Use this if the osir libref is used */ proc print data=osir._first_; /* Use this if the xxx libref is used */ proc print data=xxx._first_; //
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.