Subject: | |
From: | |
Reply To: | Keven Miller (rtt) |
Date: | Wed, 11 Apr 2007 12:52:01 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Gordon Montgomery wrote:
> Is there a way to specify the HPPath variable to be used when you use Call Intrinsic "COMMAND" from within cobol? When the session
> logs on, a logon UDC is run that sets the HPPATH variable. We use menu programs to only offer the users access to the few real
> programs they need, and call the programs with the intrinsic call. The call fails, but if you type the name at the command prompt,
> it works. I know that we can specify the full path in the call, but we were hoping for a quick and easy solution rather than having
> to find and replace all the calls with the full path. Now that I see this in writing, I can see that either way we will have to
> recompile all the menu programs, but I will still ask the question just for kicks.
>
You could call HPCIPUTVAR and put a new HPPATH at the start of the program.
Or you could change the program in the COMMAND intrinsic to be a command
script, which replaces the HPPATH, runs the program, then restores HPPATH.
Just some ideas.
Keven
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|