
Creation date: 06/22/98
Authored by: Karl Ho
Instructions on using CMS and running SAS on CMS
This instruction guide gives brief instructions on using TCP3270 to connect to CMS and run SAS on CMS. You can also use the same program to upload or download files to or from CMS.
CMS | SAS on CMS | Uploading and Downloading Files
1. Downloading the software: TCP3270
TCP3270 is one of the communication packages that enables remote logging to CMS. You can also use IBM Host On-demand under Netscape Communicator 4 for connect to IBM mainframes. TCP3270 is preferred since it is built with file uploading and downloading procedures. Click here to download the zipped file of the TCP3270 program. If Netscape is used, WS-FTP is needed to perform the file transmission. This instruction guide focuses on the TCP3270 program.
Click on the TCP3270 link and put the file, tcp3270.zip, in a folder called TCP3270 on your hard disk (e.g. C:\TCP3270).
2. Uncompressing the software using WINZIP or PKUNZIP
After downloading the file tcp3270.zip, PKUNZIP or WINZIP is needed to decompress the file. To use the former, which is a DOS program, open an MS-DOS prompt and go to the TCP3270 folder (cd c:\tcp3270). Type:
pkunzip -d tcp3270.zip
For more details in how to obtain and use PKZIP and PKZIP, click here to consult the RSS on-line document for more instructions.
Once the file is decompressed, locate Win3270.exe and double click it to run the program.
3. Logging on to CMS
TCP3270's first screen is like this:

Choose CMS at the Profile box and you can see the VM/ESA screen for logging on to CMS:

At the USERID prompt, type in your userid and hit TAB key to go to next field for entering your password. If you are too anxious and already hit ENTER, type in your password at where the cursor is. When you see the screen with a Ready; prompt, you are in CMS and ready to run SAS program with it.

For more instructions on using CMS, consult the on-line documents Introduction to CMS (RSS) (concise version) and Introduction to CMS (detailed version).
To run SAS on CMS, type SAS at the the Ready; prompt (see the next screen shot). Make sure you have 8 mb in storage (memory) for running this program. To check on your storage, type:
q stor
When SAS is open, check your keys window to ensure they are correctly mapped. Fix it according to the next screen otherwise. Type keys at the command line:

Some of the useful function keys are:
Key Definition
F1 help
F2
F3 end
F4 recall
F5 pgm
F6 log
F7 output
F8 next
F9 pmenu
F10 command
F11 keys
F12 undo
Shift F7 backward
Shift F8 forward
Try on a SAS program as follows:

Hit F3 to submit the job and the output returns occupying the whole screen. You can save the output using the file command as follows:

Note that the name of the file is consisted of three parts: filename, filetype and filemode. For example, SAS01 LISTING A1 (note the space in between). After saving the output, quit SAS by entering endsas at the command prompt. When the Ready; prompt shows, you can hit F2 to browse the filelist to check if the file "SAS01 LISTING A1" is in place. You can read this file by typing X at the command column next to the file. The XEDIT editor will be opened for browsing and editing.
Uploading and Downloading Files
TCP3270 has built-in features allowing you to transfer files from and to your CMS account. To perform these operations, you need to go to the Ready; prompt screen and choose transfer from the menu:

If you like to download the SAS output file to your local PC, select Transfer from the menu and click on Receive (Download). Two points warrant caution:
1. You need to perform this operation at the Ready; prompt;
2. Jot down the file name (e.g. SAS01 LISTING A1) before you call up the file transfer
dialog box.
The following screen shot shows what needs to be entered for downloading a file:

Beware that the SAS files (output, data and program) need to be transferred using ASCII option (under General Options). You need to type in the CMS file name (SAS01 LISTING A1) and the local file name on your computer (sas01.lst in c:\temp folder). Click OK and the following screen will show if the transfer is successful:

Please contact Karl Ho if there is any question regarding this instruction page and the use of SAS and CMS.
Last updated: 01/17/07 by Karl Ho