BookmarkSubscribeRSS Feed
Cherry
Obsidian | Level 7

rsubmit;

proc printto print='/home/*****/prdsale';

proc sort data=unixlib.PRDSALE out=prdsale;

by region;

run;

proc gchart data=unixlib.prdsale;

vbar country / sumvar=actual discrete;

by region;

run;

quit;

endrsubmit;

I am remote submitting above code from mainframe to unix and prdsale has been creating with '0' records. please find the below detials of unix. Please advise is there any thing am I missing. Your help would be much appreciated.

0 Jul 22 02:26 prdsale

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi: Proc PRINTTO captures procedure output that would normally go to the LISTING window (or that might be considered a VISIBLE report). With the code you show, there is NOTHING going to the LISTING window. PROC SORT only writes messages to the LOG and PROC GCHART will write to a Graph catalog and then to the interactive GRAPH window. PROC PRINTTO is just an ASCII text file. So it will not, for example, be able to hold an IMAGE file created by GCHART, such as PDF, RTF or HTML would be able to do.
      

  Have you tried using ODS??? Assuming you have write access to the HOME directory, you should be able to create files in that location using ODS:
       

rsubmit;

 

** try SASHELP.PRDSALE instead of UNIXLIB.PRDSALE as a test;

proc sort data=sashelp.PRDSALE out=prdsale;

by region;

run;

 

** use ODS instead of PROC PRINTTO;

ods pdf file='/home/*****/prdsale_test.pdf';

ods rtf file='/home/*****/prdsale_test.rtf';

ods html path='/home/*****/' (url=none) file='prdsale_test.html';

proc gchart data=prdsale;

vbar country / sumvar=actual discrete;

by region;

run;

quit;

ods _all_ close;

** then go look in the /home directory to find the files;

    

endrsubmit;
   

I do not have a Unix system to test with using RSUBMIT/ENDRSUBMIT -- but when I tested the code on my UNIX system using SASHELP.PRDSALE, I did successfully get 3 output files in my defined directory.

  So if you need help getting the path correct, you may need to work with Tech Support on that.


     cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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