On 10/03/2006, at 8:29 AM, fbocch2595@xxxxxxx wrote:


CPYF FROMFILE(fromlib/file1) TOFILE(tolib/file1) MBROPT(*REPLACE) INCCHAR(*RCD 1 *EQ 'CC01')

The item in red is the only thing that will change. I want a command to prompt and allow a change to just the part of INCCHAR which contains the VALUE.

You can't do this. It is not possible to prompt part of an element list. You can only prompt for complete parameters.

You'll need to request the VALUE some other way (e.g., DSPF) and feed that into CPYF using concatenation. You'll then have to run the command via QCMDEXC (or equivalent API).

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------


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.