|
Hi Ted - >More specifically, I want to know if I can retrieve >information from a data area (at prompt time) to fill >in defaults into a parameter. Also, if the defaults >on that parameter are changed, update the data area >so that those values are available next time the command >is executed. Yes, but it has nothing to do with DTAARA(*YES). As Mike said, you need a prompt override program to load the value at prompting. Your command processing program would need to save the last value passed. I think you would also need a default special value for when the command is not prompted which would tell the command processing program to go out to the data area to get the value to use (generally *SAME). I thought I had a command that used prompting where I could check this, but I couldn't find one. I think it was actually at a previous job. You can find more about prompt override programs in the CL Programming manual. For V4R4 see: http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS/qb3auo02/9.6 Ken Southern Wine and Spirits of Nevada, Inc. Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.