BookmarkSubscribeRSS Feed
DavidJ
Calcite | Level 5
I am trying to produce a simple line chart in batch on z/os and print the chart off to the client (I do not have access to SAS on any other platform).

Sample program follows:
In JCL for now I have the SASLIST DD commented out.

data final;
input age survival;
cards;
65 88
75 30
87 12
94 3
;
run;

proc goptions reset=all;
proc gplot data=final;
plot survival*age / overlay haxis=axis1 hminor=4
vaxis=axis2 vminor=1;
symbol1 i=join v=dot h=1;
axis1 order=(65 to 100 by 5) label=('Age')
major=(height=1) minor=(height=0.5);
axis2 order=(0 to 100 by 10) label=('Survival')
major=(height=1) minor=(height=0.5);
run;
quit;


The program comes back with a RC of 8 in batch and a message DEVICE INITIALIZATION FAILED. Other SASLIST output (routed to a AFB printer) from things like PROC FREQ and PROC PRINT are being created in the batch job's output under SASLIST. I have tried device=png and device=gif, which eliminates the message, but still generates no output.
2 REPLIES 2
ArtC
Rhodochrosite | Level 12
I am not a zOS user but would suspect that you need to add:
(untested code)
[pre]
filename outplt 'filelocation.on.your.system...emf';
goptions reset=all;
goptions gsfname=outplt device=emf;
[/pre]
DavidJ
Calcite | Level 5
I added the options you suggested, used a device of gif570, and files are being
generated which I downloaded and looked at successfully. Thanks

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1070 views
  • 0 likes
  • 2 in conversation