The SAS Output Delivery System and reporting techniques

z/OS: create html ascii code

Reply
N/A
Posts: 1

z/OS: create html ascii code

Hello,
we want to create html files on a z/OS host with ODS HTML and trantab=ascii. When I use the examples the problem is that the code is written in EBCDIC and the browser cannot handle this.

We are using the following SAS example code:
http://support.sas.com/kb/23/670.html with little changes like ods html file=&odsout style=styles.test trantab=ascii;

That's all. The macro-var &odsout is a PDSE File under z/OS with the following DCB parameters:
Organisation: PO
Record-Format: VB
Rec-Length: 8000
BLK-Size: 24008
DSN-Type: LIBRARY

Any hints why it isn't possible to generate ascii code under z/OS with ODS HTML and put statements ???

Message was edited by: Daniel Rock Message was edited by: Daniel Rock
Valued Guide
Posts: 2,175

Re: z/OS: create html ascii code

Extracts from a batch job in zOS writing to ODS destination HTML
JCL from 2 steps. First ensure the file to hold the html is deleted [pre]
//A EXEC PGM=IEFBR14
//PDSEHTML DD DSN=PUV.PIVAMS.HTMLBPA.D080531,
// DISP=(MOD,DELETE)[/pre]
Next the JCL for the html file in the SAS step which writes the ascii[pre]
//PDSEHTML DD DSN=*.A.PDSEHTML,
// DISP=(NEW,CATLG),SPACE=(CYL,(5,5),RLSE),
// DSNTYPE=LIBRARY,DSORG=PO,RECFM=VB,LRECL=8196 [/pre]
and finally our ods HTML statement which opens the destination[pre]
ODS HTML Body ='CONTROLS' (URL='CONTROLS.HTM')
Path =PDSEHTML (URL=None)
CSS
RS=None
TranTab =ASCII; [/pre]

Hope this helps

PeterC
Ask a Question
Discussion stats
  • 1 reply
  • 135 views
  • 0 likes
  • 2 in conversation