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.

Directing <strong>SAS</strong> Log and <strong>SAS</strong> Procedure Output Writing ODS XML Output to ASCII, Binary FTP to UNIX 127<br />

pass=’mypass’ /* Specify password */<br />

/* or */ /* prompt */ /* Password prompting */<br />

rcmd=’site umask 022’ /* Set permissions to */<br />

/* -rw-r--r-- */<br />

recfm=s /* binary transfer */<br />

debug; /* Write ftp messages */<br />

filename mycont ftp ’example_contents.htm’ /* Specify contents */<br />

cd=’mydir’ /* Specify directory */<br />

host=’myhost.mycompany.com’ /* Specify your host */<br />

user=’myuser’ /* Specify user */<br />

pass=’mypass’ /* Specify password */<br />

/* or */ /* prompt */ /* Password prompting */<br />

rcmd=’site umask 022’ /* Set permissions to */<br />

/* -rw-r--r-- */<br />

recfm=s /* binary transfer */<br />

debug; /* Write ftp messages */<br />

/* Specify the HTML files using the filerefs defined above */<br />

ods html body=mybody<br />

page=mypage<br />

contents=mycont<br />

frame=myfram<br />

trantab=ascii;<br />

/* Do not send output to proc output destination */<br />

ods listing close;<br />

title1 ’z/<strong>OS</strong> FTP Access Method Example’;<br />

proc plan seed=9544455;<br />

factors a=3 b=4 c=5 ordered; run;<br />

title1;<br />

quit;<br />

/* Close the HTML destination */<br />

ods html close;<br />

Writing ODS XML Output to ASCII, Binary FTP to UNIX<br />

The following ODS XML example generates ASCII output with embedded record<br />

separators and does a binary transfer to UNIX.<br />

/* Use FTP access method to direct the output to UNIX */<br />

filename myxml ftp ’odsxml1.xml’ /* specify xml file */<br />

cd=’public_html/ods_test’ /* specify directory */<br />

host=’unix.corp.dept.com’ /* specify host */<br />

user=’userid’ /* specify user */

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

Saved successfully!

Ooh no, something went wrong!