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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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