[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

2357.0. "Using INQUIRE from subprocess" by TAV02::CHAIM (Semper ubi Sub ubi .....) Thu Mar 04 1993 09:22

Is there a known problem trying to use the INQUIRE dcl command from within the
subprocess?

A customer has complained that it won't work for her. I created a simple a.com
file containing:

$inquire test "Test"

and it doesn't work for me either.

Thanks,

Cb.
T.RTitleUserPersonal
Name
DateLines
2357.1Use READ/PROMPT instead of INQUIREBRUMMY::MARTIN::BELLMartin Bell, NTCC, Birmingham UKThu Mar 04 1993 11:1019
You cannot use INQUIRE because ALL-IN-1 redefines your input to
be a VMS mailbox, which can't handle the "read-with-prompt"
QIO that INQUIRE uses. Because INQUIRE reads from the EXEC mode
logical name SYS$INPUT, you cannot redefine it elsewhere either.

You _can_ use READ/PROMPT command, and point it to the REAL terminal
as an input device.

This is a better solution even in normal command files, because you
can trap CONTROL-Z, you can timeout after a given number of seconds,
and it doesn't cause the security holes that happen with INQUIRE.
You do have to remember that READ does not automatically UPPERCASE
the text however!

Give it a try,

cheers,

mb
2357.2spawnAIMTEC::BUTLER_TFri Mar 05 1993 16:006
    From the ALL-IN-1 subprocess - Yes.
    
    You could use the SPAWN function and use Inquire if you wish.
    
    
    Tim