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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1093 views
  • 0 likes
  • 2 in conversation