Hi,
I want to connect to Unix host from SAS using code & tcpunix.scr file. I could able to connect to existing Unix host successfully.
But when i try to connect to a new UNIX host by using same tcpunix file it is giving below error.
Do I need to contact Admin for the latest tcpunix.scr file which may be present on the New Unix host to which i am trying to connect from SAS??
Code:
%let rmt = xxxxx.xx.xxx.com 1234 ;
options comamid=TCP ; signon remote = rmt '../root/../../.tcpunixsas.scr' ; %syslput run_dte = &run_dte ; signoff;
Piece of tcpunix.scr file: log "NOTE: Script file 'tcpunix.scr' entered."; if not tcp then goto notcp; if signoff then goto signoff; /* --------------- TCP SIGNON ------------------------------------*/ waitfor 'login:' , 'Username:' , 'Scripted signon not allowed' : noscript , 120 seconds: noinit; /*----------------UNIX LOGON---------------------------------------*/ /*-- for some reason, it needs a LF to turn the line around --*/ /*-- after the login name has been typed. (A CR will not do) --*/ /*-----------------------------------------------------------------*/ /* input 'Userid?'; */ type 'xxxxxxxxx' LF; waitfor 'Password', 30 seconds : nolog; /* input nodisplay 'Password?'; */ type 'xxxxxxx' LF; unx_log:
AND SO ON........
ERROR:
TRACE: Echo on; TRACE: Log 'NOTE: Script file 'tcpunix.scr' entered.'; NOTE: Script file 'tcpunix.scr' entered. TRACE: If not TCP then goto notcp; TRACE: If signoff then goto signoff; TRACE: Waitfor 'login:', TRACE: 'Username:', TRACE: 'Scripted signon not allowed': noscript, TRACE: 120.0 seconds: noinit; TRACE: noinit: TRACE: Log 'ERROR: Did not understand remote session banner.'; ERROR: Did not understand remote session banner. TRACE: nolog: TRACE: Log 'ERROR: Did not receive userid or password prompt.'; ERROR: Did not receive userid or password prompt. TRACE: Abort; NOTE: End of script file trace. ERROR: A communication subsystem partner link setup request failure has occurred. ERROR: Communication script processing aborted. ERROR: Remote signon to X1RIO canceled. ERROR: A link must be established by executing the SIGNON command before you can communicate with X1RIO. 31 %syslput run_dte = &run_dte ;
Can anyone please help me on this?
Thanks in advance.
Regards,
RaviSPR
... View more