rs=none
if
you are writing to a standard rs=none
to
format output, see Writing ODS XML Output to EBCDIC, ASCII Transfer to UNIX./* if needed, create web directory */ %sysexec mkdir '/u/myuid/public_html' ; ods html /* specify locations of HTML files */ body='examplb.htm' page='examplp.htm' contents='examplc.htm' frame='example.htm' path='/u/myuid/public_html'(url=none); /* Do not send output to proc output */ ods listing close; title1 'Here is a typical URL for this example:z/OS UNIX System Services Example'; proc plan seed=9544455; factors a=3 b=4 c=5 ordered; run; title1; quit; /* close the HTML destination */ ods html close;
http://corp.dept.com/~myuid/example.htmFor more information about viewing ODS output with a browser, see Using Remote Browsing with ODS Output.
ods html /* specify HTML files and destination URLs */ body='.seqb.htm' (url='seqb.htm') page='.seqp.htm' (url='seqp.htm') contents='.seqc.htm' (url='seqc.htm') frame='.seqf.htm' trantab=ascii; /* Do not send output to proc output destination*/ ods listing close; title1 'z/OS HTML Example'; proc plan seed=9544455; factors a=3 b=4 c=5 ordered; run; title1; quit; /* close the html destination */ ods html close;
/* create a PDSE */ filename ODSPDSE '.exampl.pdse' dsntype=library disp=(new,catlg) dsorg=po ; ods html /* specify HTML files and destination URLs */ body='examplb' (url='examplb.htm') page='examplp' (url='examplp.htm') contents='examplc' (url='examplc.htm') frame='examplf' path='.exampl.pdse' (url=none) trantab=ascii; /* Do not send output to proc output destination */ ods listing close; title1 'z/OS PDSE Example'; proc plan seed=9544455; factors a=3 b=4 c=5 ordered; run; title1; quit; /* close the HTML destination */ ods html close;
filename myfram ftp 'example_frame.htm' /* Specify frame file */ cd='mydir' /* Specify directory */ host='myhost.mycompany.com' /* Specify your host */ user='myuser' /* Specify user */ pass='mypass' /* Specify password */ /* or */ /* prompt */ /* Password prompting */ rcmd='site umask 022' /* Set permissions to */ /* -rw-r--r-- */ recfm=s /* binary transfer */ debug; /* Write ftp messages */ filename mybody ftp 'example_body.htm' /* Specify body file */ cd='mydir' /* Specify directory */ host='myhost.mycompany.com' /* Specify your host */ user='myuser' /* Specify user */ pass='mypass' /* Specify password */ /* or */ /* prompt */ /* Password prompting */ rcmd='site umask 022' /* Set permissions to */ /* -rw-r--r-- */ recfm=s /* binary transfer */ debug; /* Write ftp messages */ filename mypage ftp 'example_page.htm' /* Specify page file */ cd='mydir' /* Specify directory */ host='myhost.mycompany.com' /* Specify your host */ user='myuser' /* Specify user */ pass='mypass' /* Specify password */ /* or */ /* prompt */ /* Password prompting */ rcmd='site umask 022' /* Set permissions to */ /* -rw-r--r-- */ recfm=s /* binary transfer */ debug; /* Write ftp messages */ filename mycont ftp 'example_contents.htm' /* Specify contents */ cd='mydir' /* Specify directory */ host='myhost.mycompany.com' /* Specify your host */ user='myuser' /* Specify user */ pass='mypass' /* Specify password */ /* or */ /* prompt */ /* Password prompting */ rcmd='site umask 022' /* Set permissions to */ /* -rw-r--r-- */ recfm=s /* binary transfer */ debug; /* Write ftp messages */ /* Specify the HTML files using the filerefs defined above */ ods html body=mybody page=mypage contents=mycont frame=myfram trantab=ascii; /* Do not send output to proc output destination */ ods listing close; title1 'z/OS FTP Access Method Example'; proc plan seed=9544455; factors a=3 b=4 c=5 ordered; run; title1; quit; /* Close the HTML destination */ ods html close;
/* Use FTP access method to direct the output to UNIX */ filename myxml ftp 'odsxml1.xml' /* specify xml file */ cd='public_html/ods_test' /* specify directory */ host='unix.corp.dept.com' /* specify host */ user='userid' /* specify user */ /* pass='mypass' */ /* specify password */ /* or */ prompt /* password prompting */ rcmd='site umask 022' /* set permissions to */ /* -rw-r--r-- */ recfm=s /* binary transfer */ debug; /* write ftp messages */ /* Do not write to output window */ ods listing close; /* Specify XML file using fileref specified above */ /* Specify ascii representation and do a binary transfer */ ods xml file=myxml trantab=ascii; title1 'z/OS ODS XML Example - Binary transfer to UNIX'; proc plan seed=9544455; factors a=3 b=4 c=5 ordered; run; title1; quit; /* Close the XML destination */ ods xml close;
/* Use FTP access method to direct the output to UNIX */ filename myxml ftp 'odsxml2.xml' /* specify xml file */ cd='public_html/ods_test' /* specify directory */ host='unix.corp.dept.com' /* specify host */ user='userid' /* specify user */ /* pass='mypass' */ /* specify password */ /* or */ prompt /* password prompting */ rcmd='site umask 022' /* set permissions to */ /* -rw-r--r-- */ recfm=v /* text transfer */ debug; /* write ftp messages */ /* Do not write to output window */ ods listing close; /* Specify XML file using fileref specified above */ /* Specify RS=NONE, generate EBCDIC and do a TEXT (ASCII) transfer */ ods xml file=myxml rs=none; title1 'z/OS ODS XML Example - TEXT transfer to UNIX'; proc plan seed=9544455; factors a=3 b=4 c=5 ordered; run; title1; quit; /* Close the XML destination */ ods xml close;
/* Do not write to output window */ ods listing close; /* Direct output to UNIX System Services (USS) file */ /* Specify ascii representation */ ods xml file='/u/userid/public_html/odsxml3.xml' trantab=ascii; title1 'z/OS ODS XML Example - Output to UNIX System Services'; proc plan seed=9544455; factors a=3 b=4 c=5 ordered; run; title1; quit; /* Close the XML destination */ ods xml close;