Place to learn SAS and enhance your professional career...
Feb 3, 2010
Execute SAS on Mainframes in Interactive mode…
Interactive Processing is used for any of the interactive SAS systems (ASSIST, CALC, etc.), for SAS/GRAPH when the graphics output is to be displayed on the screen of a graphics terminal, or when wanting to see the results of a relatively small SAS program without the need for printed output.
Execute the SAS program as you are sitting in front of your terminal, and see the results of each DATA or PROCedure step as it completes. The program could be entered using ISPF before invoking SAS and then included into the interactive session, entered under the Display Manager during the interactive session, or there can be no actual programming required (as when using SAS/ASSIST).
To invoke interactive SAS, from the READY prompt or from the ISPF Primary Options Panel, enter:
This will put you into the Display Manager with the PROGRAM EDITOR window at the bottom of the screen and the LOG window at the top of the screen. From here you can enter your SAS program, invoke ASSIST, etc. To end an Interactive SAS session, enter BYE at the COMMAND line.
This tutorial assumes that you are using IBM os/390 with Humming Bird Exceed X Window Display manager available at your site.
Invoke your X-window session and typeTSOand Enter
Enter your Username
Enter your password
Type SAS at the READY prompt
This should open the SAS Windowing Environment on Mainframes.
Use this commands at the command prompt
1.explorer– open the explorer window
2.bye– quit the SAS session
3.log– to view the log window
4.F8 key– switch between windows
5.F10– to give the File Menu
6.F11– open the shortcut keys
7.clear– to clear the contents of the window
8.program– to open the program editor
9.submit– Enter the code and hit F3 to submit the code.
10.recall– to recall the submitted program.
11. HitF10key to open the File Menu…Double click the mouse on the Menu itemto open the Menu item.
This menu is similar to the File Menu in PC SAS.
12. Browsing datasets and catalogs is kind of tough with Interactive SAS. It is better to use Proc Print/ Report or any other reporting procedures in SAS. SAS uses FSBROWSE procedure to view the dataset. Inorder to view –
13. a. typeexplorer
b. typebagainst the dataset to browse the dataset…to close the dataset hit F10 and then close under file menu.
Proc print output: Pressupanddownto browse each record in the dataset.
c. typebyeto close the SAS session.
Initially it might look a bit tedious…but once u get used to it….it will be fun… Proc print / report is the way to go for instant browsing…
All SAS program syntax / statements / functions and execution is similar to PC SAS except for the way you reference the operation system files, libraries and other procs change which are native to the OS.
Alternatively SAS programs could be executed using Batch mode on Mainframes using Job Control Language (JCL)..