HP3000-L Archives

August 2004, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Emerson, Tom" <[log in to unmask]>
Reply To:
Emerson, Tom
Date:
Mon, 2 Aug 2004 14:24:30 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
> -----Original Message-----
> From: Rao, Raghu
> 
> I have a login session [...and...] remotely login to
> another test account [...]
> How do I assign the remote variables in AIHWORK to regular 
> variables in AIHDEMO ? Any ideas ?
[...]
> RZR1.AIHDEMO: REMOTE SHOWVAR XCHK@
> XCHK_BANK_CODE = 07
> XCHK_BANK_CODE_LEN = 2
> XCHK_STATUS = OK
> XCHK_NEXT_CHECK = 591130
> XCHK_CHECK_STOCK = LOCAL
> XCHK_EXT_DATE = 20040802
> 
> RZR1.AIHDEMO: SHOWVAR XCHK@
> XCHK_BANK_CODE = 07
> XCHK_BANK_CODE_LEN = 2

remotely, execute a series of commands such as 

   :REMOTE
   :ECHO SETVAR XCHK_BANK_CODE     "!XCHK_BANK_CODE"   >> TEMPCMDS
   :ECHO SETVAR XCHK_BANK_CODE_LEN !XCHK_BANK_CODE_LEN >> TEMPCMDS
   :...
   :ECHO SETVAR XCHK_EXT_DATE      "!XCHK_EXT_DATE"    >> TEMPCMDS
   :: [to return to the local session]

then move that set of commands to the local system

   :DSCOPY TEMPCMDS,remotesys TO TEMPCMDS;REP

and execute that file

   :TEMPCMDS

OTOH, pushing variables to the other system is easier:

   :REMOTE SETVAR REMOTE_VAR_NAME "!LOCAL_VAR_NAME"

sets the remote variable with the local value, but this only pushes forward -- you would need to log on to the ...WORK account first, then do a remote-hello to the ...DEMO account, not the other way around.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2