|
Hi again,
It can be passed as a parm, gotten from a file, data area anything. Does not have to be hard coded.
Okay. You're suggesting doing the following, right?
FCUSTMAS IF E K DISK USROPN
D QCMDEXC PR ExtPgm('QCMDEXC') D command 32702A const options(*varsize) D length 15P 5 const D igc 3A const options(*nopass)
D cmd s 30A varying
c *Entry plist c parm Library 10
c eval cmd = 'ADDLIBLE ' + Library c callp QCMDEXC(cmd: %len(cmd))
c open CUSTMAS
c eval cmd = 'RMVLIBLE ' + Library c callp QCMDEXC(cmd: %len(cmd))
FCUSTMAS IF E K DISK USROPN F EXTFILE(FileName)
D FileName s 21A
c *Entry plist c parm Library 10
c eval FileName = %trimr(Library) + '/CUSTMAS' c open CUSTMAS
As an Amazon Associate we earn from qualifying purchases.
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.