BookmarkSubscribeRSS Feed
DanielRock
Calcite | Level 5
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
1 REPLY 1
Peter_C
Rhodochrosite | Level 12
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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 731 views
  • 0 likes
  • 2 in conversation