× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Dean,

I 'think' that the list parameter will GENERATE such an item.
Dcl Var(&ListParm) Type(*Char) Len(162)
Dcl Var(&NbrEnt) Type(*UInt) Len(2) +
Stg(*Defined) DefVar(&ListParm 1)
Dcl Var(&UserLst) Type(*Char) Len(160) +
Stg(*Defined) DefVar(&ListParm 3)

I don't think it will CONSUME such an item.

IOW, if you front end your program with a command that has a list
parameter you may need the logic of the data structure above to process
that parameter. But methinks you cannot pass such a parameter to the
command.

This program blows up


&LISTPARM *CHAR 162 ' A123456789 B234567890
C' 0004C1F1F2F3F4F5F6F7F8F940C2F2F3F4F5F6F7F8F9F040
+26 '1 D23 '
F140C4F2F340404040404040404040404040404040404040
&NBRENT *UINT 2 4 0004
&USERLIST *CHAR 160 'A123456789 B234567890
C1 ' C1F1F2F3F4F5F6F7F8F940C2F2F3F4F5F6F7F8F9F040C3F1
+26 'D23 '
C4F2F3404040404040404040404040404040404040404040


DCL &ListParm *char 162
DCL &NbrEnt *uint 2 stg(*defined) DefVar(&ListParm 1)
DCL &UserList *char 160 stg(*defined) DefVar(&ListParm 3)
chgvar &UserList 'A123456789 B234567890 C1 D23'
?GRTOBJAUT OBJ(A) OBJTYPE(*FILE) USER(&UserList) /* Fails */

chgvar &NbrEnt 4
?GRTOBJAUT OBJ(A) OBJTYPE(*FILE) USER(&ListParm) /* Also fails */


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.