× 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.



Rob,

Well, at least I know my explanation of why it doesn't work was correct. When I posted my possible solution, I wasn't totally sure it would work but I thought I would throw it out there as a possibility. The article I used to model my suggestion was http://www.mcpressonline.com/programming/cl/the-cl-corner-trim-multiple-leading-characters-with-trmlftchr.html. I tweaked it a little thinking it would work. Bruce did use pointers to process the list in his article. I think my past experience was related to extracting values from a list parameter as opposed to building a list parameter. Sorry for providing a bad example.

Dean Eshleman
Software Development Architect

Everence Financial
1110 North Main Street
PO Box 483
Goshen, IN 46527
Phone: (574) 533-9515 x3528
www.everence.com<http://www.everence.com/>
n 2015-02-05 1:28 PM, rob@xxxxxxxxx wrote:> 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


______________________________________________________________________
Confidentiality Notice: This information is intended only for the individual or entity named. If you are not the intended recipient, do not use or disclose this information. If you received this e-mail in error, please delete or otherwise destroy it and contact us at (800) 348-7468 so we can take steps to avoid such transmission errors in the future. Thank you.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.