BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Asbon
Obsidian | Level 7

Hi,

 

Can we use PROC SCAPROC in grid enabled script 
like

non grid script:- ${sas} ${code} -noterminal -initstmt "proc scaproc; record '${sca}'; run;"

Grid scrip:- ${sas} -GRIDWAITRESULTS -GRIDSUBMITPGM ${code} -GRIDRESULTSDIR ${log_base} -GRIDJOBOPTS queue=${queue}

 

how to use "proc scaproc; record '${sca}'; run;" in grid.

 

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
doug_sas
SAS Employee

You will need to play with the quoting to get the call correct since the initstmt is using both single and double quotes. Maybe something like the following will work:


${sas} -GRIDWAITRESULTS -GRIDSUBMITPGM ${code} -GRIDRESULTSDIR ${log_base} -GRIDJOBOPTS queue=${queue} -GRIDSASOPTS "(-initstmt \"proc scaproc; record '${sca}'; run;\")"

 

 

View solution in original post

2 REPLIES 2
doug_sas
SAS Employee

You will need to play with the quoting to get the call correct since the initstmt is using both single and double quotes. Maybe something like the following will work:


${sas} -GRIDWAITRESULTS -GRIDSUBMITPGM ${code} -GRIDRESULTSDIR ${log_base} -GRIDJOBOPTS queue=${queue} -GRIDSASOPTS "(-initstmt \"proc scaproc; record '${sca}'; run;\")"

 

 

Asbon
Obsidian | Level 7
It worked, thanks

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 412 views
  • 1 like
  • 2 in conversation