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



<Hi, all

I was just thinking of how user options work in PDM. One of the things you can do is add parameters on the command line that are applied to each use of the option - multiple selections. I.e., a single entry of additional parameters to be applied to multiple evocations of a command. This is also one of the things in many green screens that is very useful - OUTQ(name) when entering '2' on multiple spooled files in WRKSPLF is a classic example.

Is this now or going to be available in RSE? That's one of the things that is a tremendous timesaver in PDM.

TIA

Vern>

You can achieve this effect in WDSc, but (as far as I know) not without doing some of the work yourself.

When defining a user action, check both "Prompt first" and "Invoke once". If you check "Invoke once", WDSc will create a temporary source file member that has a record for each selected resource. You can use the &MF, &ML and &MM variables in your command to indentify the file, library and member that is created when your action is run.

For example, YOURCMD FILE(&ML/&MF) MBR(&MM)

Your command processing program then is responsible for retrieving the actual selections from the source member, which you would have to experiment with. For example, if your action is a member action, the selections will be in the form srclib/srcfile(srcmbr).

Since you checked "Prompt first" you will be prompted (once) and have the opportunity to specify any additional parameters for your command (as if you were entering them on a PDM command line), and your processing program can then use these parameters to execute whatever command needs to be executed against each selection.

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.