[Info-vax] Command Procedure Pipe output to a variable

Arne Vajhøj arne at vajhoej.dk
Fri Oct 1 12:42:18 EDT 2021


On 10/1/2021 12:10 PM, HCorte wrote:
> Thanks for the links to the documentation Stephen, reading the "Run-Time Library LIB$ Routines" for the lib$spawn and status that can return SS$_NORMAL,SS$_ACCVIO,SS$_DUPLNAM ,fac$_xxx,LIB$_INVARG ,LIB$_INVSTRDES,LIB$_NOCLI
> 
> with INCLUDE '($SSDEF)' know that the values of
> SS$_NORMAL:           1
> SS$_ACCVIO:          12
> SS$_DUPLNAM:         148
> 
> but can't find what is the library to include for remaining constants LIB$_INVARG ,LIB$_INVSTRDES,LIB$_NOCLI and fac$_xxx

$ libr/text/list sys$library:forsysdef
Directory of TEXT library SYS$COMMON:[SYSLIB]FORSYSDEF.TLB;1 on 
1-OCT-2021 12:27:23
Creation date:  30-OCT-2012 23:43:04      Creator:  Librarian A09-23
Revision date:  30-OCT-2012 23:43:04      Library format:   3.0
Number of modules:    319                 Max. key length:  39
Other entries:          0                 Preallocated index blocks:     32
Recoverable deleted blocks:        0      Total index blocks used:       15
Max. Number history records:       0      Library history records:        0

...
$LIBCLIDEF
$LIBDCFDEF
$LIBDEF
$LIBDTDEF
$LIBFILDEF
$LIBFISDEF
$LIBICB
$LIBVMDEF
$LIBWAITDEF
...
LIB$ROUTINES
...
$ libr/text/extr=$libdef/out=sys$output sys$library:forsysdef
!*** MODULE $LIBDEF ***
!DEC$ OPTIONS/ALIGN=(RECORDS=PACKED,COMMONS=PACKED)/NOWARN
  !
  !  This SDL File Generated by VAX-11 Message V04-00 on 30-OCT-2012 
08:41:42.41
  !
  !  FILE: LIBMSG.MSG
...
         PARAMETER LIB$_INVSTRDES = '00158224'X
  !                      ;    LIB$SCOPY_XXXX
         PARAMETER LIB$_INTLOGERR = '0015822C'X
         PARAMETER LIB$_INVARG = '00158234'X
  !                      ;    LIB$LOOKUP_KEY
...

 > getting the following value retuned by the SPAWN routine: 231666
 >
 > know that its not LIB$_INVARG and LIB$_INVSTRDES since was able to 
run in simple program (lib$spawn) where the params are the same, so most 
likely is LIB$_NOCLI or fac$_xxx.
 >
 > could someone help in what is the name of library for the constants 
Status return by the routine and 231666 means what? perhaps its fac$_xxx 
"Other error trying to create subprocess." if so a bit vague in the 
probleam...

$ write sys$output f$message(231666)
%CLI-E-TRMMBX, terminal has associated mailbox - terminate image and 
then SPAWN

Arne




More information about the Info-vax mailing list