BookmarkSubscribeRSS Feed
Rinni_2
Calcite | Level 5
Dear All,
I have to create a solution to automatically export all sas decision logic object to nfs location and am trying below query to export one sample decision logic.

I am trying this logic as first time maybe I am doing wrong approach. Please help me on this
#!/bin/bash


.. /9.4/sasexe/sas -noterminal -eval 'ExportPackage -host "abc" -port 8561 -user "acad" -password "were" -package "/abc/test.spk" -objects "/user folder/sasdemo/my folder/test_point" -subprop -types "Condition,BusinessRuleFlow,ExternalFile,Cube,SearchFolder,Table,GeneratedTransform,OLAPSchema,InformationMap.OLAP,Measure,Column,Job"'
I am getting the below error.
Error:unrecognized sas option name, ' Exportpackage -host "abc" -port 8561 - user "a cad" - password "were" -package " / abc/test.spk" -objects "/user folder/ sasdemo/my folder/ test_point
2 REPLIES 2
ballardw
Super User

Not familiar with Export Package but you have unbalanced quotes in your code. You have a single quote before Export Package but no closing single quote. Your code also does not show a space between ' and Export but the error message does.

Rinni_2
Calcite | Level 5
Thank you for your response. Even I added the quotes it's facing they same issue.
Is there any approach I can try.
The requirement is wanted to sync deployed decision logic object from both DR and PR site automatically.
So I thought if we can get into nfs location I hope we can update the latest code.

Please share if there is any other approach I can apply

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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