Shell Script thru SAS Code

Posted on 2011-05-09
Last Modified: 2013-11-16
I need to trigger a shell script which directs the output to a different location using SAS Code.

I am using ----filename a 'nohup /sas/*******/ &' ---- but not able to trigger the code.

Can any one please help me on this.

Appreciate your help. Thanks.
Question by:aruku
    1 Comment
    LVL 7

    Accepted Solution

    Try using the X-command.

    X 'nohup /sas/*******/ &';

    Here's the way we do it for one of our SAS/AF apps.  The user selects a specific application (_app)  and task (_prog) so those are captured as macro variables.  Other specifications are captured and swapped into the program as macro variables.  SAS is in the path so we don't need to specify the path to it.

     x "nohup sas -sysparm &_server -unbuflog &_progDir/&_app.&_prog                                                                                                                  
                -log &_logDir/&_app.&_prog..log                                                                                                                                                    
                -print &_listDir/&_app.&_prog..lst & ";      

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Top 100 6 97
    Database restore 8 47
    MS Access Keep Subform Locked Until Main Form Is Completed 25 44
    Image not there 4 14
    This article describes some very basic things about SQL Server filegroups.
    SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now