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



A question about simple basic CL Programming:

In a CL Program you have a command:
CPYF FROMFILE(&FILEA) TOFILE(&FILEB) FROMMBR(&FROMMBR) TOMBR(&TOMEMBER).
This works fine even if the value of &FROMMBR is '*N' - indicating that no
specific value is given for FROMMBR()

However:
CHGLIBL (&LIB1 &LIB2 &LIB3)
will not take '*N' as a value for &LIB3 but answers CPD0073. Neither will it
take blanks for a value (CPD0078). In other words: There is no way to tell
the CPP of CHGLIBL that the list contains only two elements. With &LIB1
&LIB2 &LIB3 it insists of getting three valid library names.

With commands as simple as CHGLIBL it's easy to build a text string
(containing as many blanks as you want) and give it to QCMDEXC, but with
more complex commands it would be nice to use the command directly, and not
have to build it in a text string. Is there a way to code varying number of
list elements in a single CLP command?


Henrik



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.