Sysparm in SAS GRID

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 13
Accepted Solution

Sysparm in SAS GRID

Hi Team,

 

I am trying to execute a macro in SAS GRID. When i execute using SAS command,

sas mac_pgm.sas -sysparm src=A,S_NM=B,ADHOC=Y,F_EXT=201602 , the macro 'mac_pgm' is invoked and is executed fine, but when i execute the same using sasgsub, it doesn't.

 

Command used: sasgsub -gridsubmitpgm mac_pgm.sas -gridsasopts "'-sysparm src=A,S_NM=B,ADHOC=Y,F_EXT=201602'"

 

The error that i get is : ERROR: Invalid file, /sasconfig/Lev1/SASApp/F_EXT=201602.sas.

 

Can you help me invoke that macro in SAS GRID?


Accepted Solutions
Solution
‎04-18-2016 02:11 PM
Trusted Advisor
Posts: 1,301

Re: Sysparm in SAS GRID

[ Edited ]
Posted in reply to Vimal_Kurup

 

When using quotes inside of GRIDSASOPTS you need to also use parenthesis.

 

The follow may work, although I suspect the commas may cause issue

 

sasgsub -gridsubmitpgm mac_pgm.sas -gridsasopts "-sysparm src=A,S_NM=B,ADHOC=Y,F_EXT=201602"

 

or, in the case where the above does not work, to properly enclose the sysparm value in quotes, do 

 

sasgsub -gridsubmitpgm mac_pgm.sas -gridsasopts "(-sysparm 'src=A,S_NM=B,ADHOC=Y,F_EXT=201602')"

Previous example:

https://communities.sas.com/t5/Base-SAS-Programming/unix-sas-macro-issue-when-using-sysparm-in-grid-...

 

 

Edit for clarity

View solution in original post


All Replies
Solution
‎04-18-2016 02:11 PM
Trusted Advisor
Posts: 1,301

Re: Sysparm in SAS GRID

[ Edited ]
Posted in reply to Vimal_Kurup

 

When using quotes inside of GRIDSASOPTS you need to also use parenthesis.

 

The follow may work, although I suspect the commas may cause issue

 

sasgsub -gridsubmitpgm mac_pgm.sas -gridsasopts "-sysparm src=A,S_NM=B,ADHOC=Y,F_EXT=201602"

 

or, in the case where the above does not work, to properly enclose the sysparm value in quotes, do 

 

sasgsub -gridsubmitpgm mac_pgm.sas -gridsasopts "(-sysparm 'src=A,S_NM=B,ADHOC=Y,F_EXT=201602')"

Previous example:

https://communities.sas.com/t5/Base-SAS-Programming/unix-sas-macro-issue-when-using-sysparm-in-grid-...

 

 

Edit for clarity

Occasional Contributor
Posts: 13

Re: Sysparm in SAS GRID

Latter option worked. Thank you FriedEgg

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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