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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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