Contents
About
What's New in the SAS 9.2 Companion for z/OS
Running SAS Software under z/OS
Initializing and Configuring SAS Software
Invoking SAS in the z/OS Environment
Connecting to SAS under z/OS
Customizing Your SAS Session
HFS, UFS, and zFS Terminology
Specifying Physical Files
SAS Software Files
Transporting SAS Data Sets between Operating Environments
Accessing SAS Files in Other Operating Environments
Using Input/Output Features
Reserved z/OS ddnames
Using the SAS Remote Browser
Using Item Store Help Files
Exiting or Terminating Your SAS Session in the z/OS Environment
Solving Problems under z/OS
Support for SAS Software
Using SAS Libraries
Introduction
SAS Library Engines
SAS View Engines
Library Implementation Types for Base and Sequential Engines
Assigning SAS Libraries
Allocating External Files
Introduction to External Files
Ways of Allocating External Files
Using the FILENAME Statement or Function to Allocate External Files
Using the JCL DD Statement to Allocate External Files
Using the TSO Allocate Command to Allocate External Files
Allocating External Files on Tape
Allocating External Files to a Pipe
Allocating Generation Data Sets
Allocating Nonstandard External Files
Concatenating External Files
Displaying Information about External Files
Deallocating External Files
Accessing External Files
Referring to External Files
How SAS Determines Device Types
Writing to External Files
Reading from External Files
Accessing Nonstandard Files
Accessing UNIX System Services Files
Using Wildcards in UNIX System Services Filenames
Writing Your Own I/O Access Methods
Accessing SAS Statements from a Program
Using the INFILE/FILE User Exit Facility
Directing SAS Log and SAS Procedure Output
Types of SAS Output
Directing Output to External Files with the PRINTTO Procedure
Directing Output to External Files with System Options
Directing Output to External Files with the DMPRINT Command
Directing Output to External Files with the FILE Command
Directing Output to External Files with DD Statements
Directing Output to a Printer
Directing Output to a Remote Destination
Directing Procedure Output: ODS Examples
Sending E-Mail from within SAS Software
Using the SAS Logging Facility To Direct Output
Universal Printing
Introduction to Universal Printing
Using Universal Printing in the Windowing Environment
Using Universal Printing in a Batch Environment
Using FTP with Universal Printing
Example Programs and Summary
The SASLIB.HOUSES Data Set
Windows and Commands in z/OS Environments
Windows and Commands in the z/OS Environment
Using the Graphical Interface
Host-Specific Windows in the z/OS Environment
DSINFO Window
FILENAME Window
FNAME Window
LIBASSIGN Window
LIBNAME Window
MEMLIST Window
Host-Specific Windows of the FORM Subsystem
Host-Specific Window Commands
CLOCK Command
DFLTACTION Command
DLGENDR Command
EXPLODE Command
FILE Command
GCURSOR Command
HOSTEDIT Command
INCLUDE Command
NULLS Command
TSO Command
WBROWSE Command
WIDGNEXT Command
WIDGPREV Command
X Command
SAS System Options That Affect the z/OS Windowing Environment
Terminal Support in the z/OS Environment
Application Considerations
SAS Interfaces to ISPF and REXX
SAS Interface to ISPF
SAS Interface to REXX
Using the INFILE/FILE User Exit Facility
Introduction
Writing a User Exit Module
Function Descriptions
SAS Service Routines
Building Your User Exit Module
Activating an INFILE/FILE User Exit
Sample Program
Data Representation
Representation of Numeric Variables
Using the LENGTH Statement to Save Storage Space
How Character Values Are Stored
Host-Specific Features of the SAS Language
Data Set Options under z/OS
Data Set Options in the z/OS Environment
ALTER= Data Set Option
BUFSIZE= Data Set Option
FILEDISP= Data Set Option
Summary of SAS Data Set Options in the z/OS Environment
Formats under z/OS
Formats in the z/OS Environment
Considerations for Using Formats in the z/OS Environment
BESTw. Format
Ew. Format
HEXw. Format
IBw.d Format
PDw.d Format
RBw.d Format
w.d Format
ZDw.d Format
Functions and CALL Routines under z/OS
Functions and CALL Routines under z/OS
ANYPUNCT Function
CALL SLEEP Routine
CALL SYSTEM Routine
CALL TSO Routine
CALL WTO Routine
DINFO Function
DOPEN Function
DOPTNAME Function
DOPTNUM Function
DSNCATLGD Function
FCLOSE Function
FDELETE Function
FEXIST Function
FILEEXIST Function
FILENAME Function
FILEREF Function
FINFO Function
FOPEN Function
FOPTNAME Function
FOPTNUM Function
KTRANSLATE Function
MOPEN Function
PATHNAME Function
PEEKCLONG Function
PEEKLONG Function
SYSGET Function
SYSTEM Function
TRANSLATE Function
TSO Function
WTO Function
Informats under z/OS
Informats in the z/OS Environment
Considerations for Using Informats under z/OS
Ew.d Informat
HEXw. Informat
IBw.d Informat
PDw.d Informat
RBw.d Informat
ZDw.d Informat
ZDBw.d Informat
Macros under z/OS
Macros in the z/OS Environment
Automatic Macro Variables
Macro Statements
Macro Functions
Autocall Libraries
Stored Compiled Macro Facility
Other Host-Specific Aspects of the Macro Facility
Additional Sources of Information
%ISHCONV Macro
Procedures under z/OS
Procedures in the z/OS Environment
BMDP Procedure
CATALOG Procedure
CIMPORT Procedure
CONTENTS Procedure
CONVERT Procedure
CPORT Procedure
DATASETS Procedure
DBF Procedure
FONTREG Procedure
FORMAT Procedure
ITEMS Procedure
OPTIONS Procedure
PDS Procedure
PDSCOPY Procedure
PMENU Procedure
PRINTTO Procedure
RELEASE Procedure
SORT Procedure
SOURCE Procedure
TAPECOPY Procedure
TAPELABEL Procedure
Statements under z/OS
Statements in the z/OS Environment
ABORT Statement
ATTRIB Statement
CARDS Statement
DSNEXST Statement
FILE Statement
FILENAME Statement
FOOTNOTE Statement
%INCLUDE Statement
INFILE Statement
LENGTH Statement
LIBNAME Statement
OPTIONS Statement
SASFILE Statement
SYSTASK LIST Statement
TITLE Statement
TSO Statement
WAITFOR Statement
X Statement
System Options under z/OS
System Options in the z/OS Environment
Definition of System Options
Summary Table of SAS System Options
ALTLOG= System Option
ALTPRINT= System Option
APPEND= System Option
ARMAGENT= System Option
ASYNCHIO System Option
AUTHPROVIDERDOMAIN System Option
AUTOEXEC= System Option
BLKALLOC System Option
BLKSIZE= System Option
BLKSIZE(device-type)= System Option
CAPSOUT System Option
CARDIMAGE System Option
CATCACHE= System Option
CHARTYPE= System Option
CLIST System Option
CONFIG= System Option
DEVICE= System Option
DLDISPCHG System Option
DLDSNTYPE System Option
DLEXCPCOUNT System Option
DLHFSDIRCREATE System Option
DLMSGLEVEL= System Option
DLSEQDSNTYPE System Option
DLTRUNCHK System Option
DSRESV System Option
DYNALLOC System Option
ECHO= System Option
EMAILSYS= System Option
ENGINE= System Option
ERRORABEND System Option
FILEAUTHDEFER System Option
FILEBLKSIZE(device-type)= System Option
FILECC System Option
FILEDEST= System Option
FILEDEV= System Option
FILEDIRBLK= System Option
FILEEXT= System Option
FILEFORMS= System Option
FILELBI System Option
FILELOCKS= System Option
FILEMOUNT System Option
FILEMSGS System Option
FILENULL System Option
FILEPROMPT System Option
FILEREUSE System Option
FILESEQDSNTYPE System Option
FILESPPRI= System Option
FILESPSEC= System Option
FILESTAT System Option
FILESYNC= System Option
FILESYSOUT= System Option
FILESYSTEM= System Option
FILEUNIT= System Option
FILEVOL= System Option
FILSZ System Option
FONTSLOC= System Option
FSBCOLOR System Option
FSBORDER= System Option
FSDEVICE= System Option
FSMODE= System Option
FULLSTATS System Option
GHFONT= System Option
HELPHOST System Option
HELPCASE System Option
HELPLOC= System Option
HSLXTNTS= System Option
HSMAXPGS= System Option
HSMAXSPC= System Option
HSSAVE System Option
HSWORK System Option
INSERT= System Option
ISPCAPS System Option
ISPCHARF System Option
ISPCSR= System Option
ISPEXECV= System Option
ISPMISS= System Option
ISPMSG= System Option
ISPNOTES System Option
ISPNZTRC System Option
ISPPT System Option
ISPTRACE System Option
ISPVDEFA System Option
ISPVDLT System Option
ISPVDTRC System Option
ISPVIMSG= System Option
ISPVRMSG= System Option
ISPVTMSG= System Option
ISPVTNAM= System Option
ISPVTPNL= System Option
ISPVTRAP System Option
ISPVTVARS= System Option
JREOPTIONS= System Option
LINESIZE= System Option
LOG= System Option
LOGPARM= System Option
LRECL= System Option
MEMLEAVE= System Option
MEMRPT System Option
MEMSIZE= System Option
METAPROFILE= System Option
MINSTG System Option
MSG= System Option
MSGCASE System Option
MSGSIZE= System Option
MSYMTABMAX= System Option
MVARSIZE= System Option
OPLIST System Option
PAGEBREAKINITIAL System Option
PAGESIZE= System Option
PARMCARDS= System Option
PFKEY= System Option
PGMPARM= System Option
PRIMARYPROVIDERDOMAIN System Option
PRINT= System Option
PRINTINIT System Option
PROCLEAVE= System Option
REALMEMSIZE= System Option
REXXLOC= System Option
REXXMAC System Option
SASAUTOS= System Option
SASHELP= System Option
SASLIB= System Option
SASSCRIPT System Option
SASUSER= System Option
SEQENGINE= System Option
SET= System Option
SORT= System Option
SORTALTMSGF System Option
SORTBLKMODE System Option
SORTBUFMOD System Option
SORTCUTP= System Option
SORTDEV= System Option
SORTDEVWARN System Option
SORTEQOP System Option
SORTLIB= System Option
SORTLIST System Option
SORTMSG System Option
SORTMSG= System Option
SORTNAME= System Option
SORTOPTS System Option
SORTPARM= System Option
SORTPGM= System Option
SORTSHRB System Option
SORTSIZE= System Option
SORTSUMF System Option
SORTUADCON System Option
SORTUNIT= System Option
SORTWKDD= System Option
SORTWKNO= System Option
SORT31PL System Option
STAE System Option
STATS System Option
STAX System Option
STEPCHKPTLIB= System Option
STIMER System Option
SVC11SCREEN System Option
SYNCHIO System Option
SYSIN= System Option
SYSINP= System Option
SYSLEAVE= System Option
SYSPREF= System Option
SYSPRINT= System Option
S99NOMIG System Option
TAPECLOSE= System Option
USER= System Option
UTILLOC= System Option
V6GUIMODE System Option
VERBOSE System Option
WORK= System Option
WORKTERM System Option
WTOUSERDESC= System Option
WTOUSERMCSF= System Option
WTOUSERROUT= System Option
XCMD System Option
Optimizing Performance
Introduction to Optimizing Performance
Collecting Performance Statistics
Optimizing SAS I/O
Efficient Sorting
Some SAS System Options That Can Affect Performance
Managing Memory
Loading SAS Modules Efficiently
Other Considerations for Improving Performance
Appendixes
Starting SAS with SASRX
Overview of SASRX
Option Syntax
SASRX Options
Site Customizations
Accessing BMDP, SPSS, and OSIRIS Files
The BMDP, SPSS, and OSIRIS Engines
Accessing BMDP Files
Accessing OSIRIS Files
Accessing SPSS Files
The cleanwork Utility
Overview of the cleanwork Utility
Installing the cleanwork Utility
Configuring the cleanwork Utility
See Also
Host-System Subgroup Error Messages
Introduction
Messages from the SASCP Command Processor
Messages from the TSO Command Executor
Messages from the Internal CALL Command Processor
Recommended Reading
Glossary
Product
Release
Base SAS
9.2
Type
Usage and Reference
Copyright Date
February 2009
Last Updated
18May2010