Chapter Contents |
Previous |
Next |
Communications Access Methods for SAS/CONNECT and SAS/SHARE Software |
The following script signs on and signs off an OS/390 remote host with the EHLLAPI 3270 access method. This script assumes that the user has already logged on to an OS/390 remote host.
/* trace on; */ /* echo on; */ /*--------------------------------------------------------------------- Copyright (C) 1996 by SAS Institute Inc., Cary NC name: tso.scr purpose: SAS/CONNECT SIGNON/SIGNOFF script for connecting to an OS/390 (with TSO) host using the EHLLAPI access method from a local WINDOWS or an OS/2 operating system. assumes: 1. This script assumes the remote session is already logged on. 2. The command to execute SAS in your remote OS/390 (with TSO) environment is "sas". If this is incorrect for your site, change the contents of the line that contains ... type "sas ... support: SAS Institute staff --------------------------------------------------------------------*/ [1] log "NOTE: Script file 'tso.scr' entered."; [2] if signoff then goto signoff; /*---- EHLLAPI SIGNON -----------------------------------------------*/ [3] waitfor 'READY', 0 seconds: noinit; log 'NOTE: Starting remote SAS now.'; /* NOTERMINAL suppresses prompts from remote SAS session. */ /* NO$SYNTAXCHECK prevents remote side from going into syntax */ /* checking mode when a syntax error is encountered. */ type "sas options('dmr,comamid=pclink,noterminal,no$syntaxcheck')" enter; goto continue; [4] continue: waitfor 'IN PROGRESS', 20 seconds: waitsas; [5] onok: log 'NOTE: SAS/CONNECT conversation established.'; stop; /*---- EHLLAPI SIGNOFF ----------------------------------------------*/ [6] signoff: log 'NOTE: SAS/CONNECT conversation terminated.'; log 'NOTE: Remote session left logged on.'; stop; /*----- SUBROUTINES -------------------------------------------------*/ [7] waitsas: log 'NOTE: Waiting for startup screen...'; type EREOF enter; goto continue; /*----- ERROR HANDLING ----------------------------------------------*/ [8] noinit: snapshot; log 'ERROR: Did not get remote prompt. Remote session not active.'; log 'NOTE: You must log on to the remote session before signing on'; log ' using this script file.'; abort;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.