In the old s36 enviroment, when ou browse your files,I could see the records of each file simultanuosly by pressing F10. In the new I515 series, i still haven't found the right command to see the records in wrkobjpdm. It's annoying to type 12 and than 5 for each file seperately. Like in the old enviroment( by pressing F10), is there a smarter way. If there's a method, could you please show me that particular command?
Software/Hardware used:
i 515 os
ASKED:
August 25, 2010 1:37 PM
UPDATED:
August 30, 2010 3:37 PM
…see the records of each file simultanuosly…
I assume that that means that you want to see a list of the records in the file rather than seeing them one at a time.
I usually create a PDM option to do that. I set “RQ” as the option code for “Run Query”. For the option command, I usually use:
RUNQRY QRY(*NONE) ??QRYFILE((&L/&N)) ??OUTTYPE(*DISPLAY) ??RCDSLT(*NO)The RCDSLT() parameter is only meaningful on a system that has the Query/400 (or Query for iSeries) product installed.
You can run the RUNQRY command from any command line. The only parameter you need to supply a value for is QRYFILE). The QRY() parameter can be nulled. For example, if you have a file named MYDATA in a library named MYLIB, you can run this from a command line:
The “*n” tells the command processor to skip the first parameter.
Technically, all you’d actually need for a PDM “RQ” option command is:
PDM would replace the &l and the &n with the library and the file name from the Work With Objects list.
If you need assistance, post back here.
Tom
Keep in mind, SSP didn’t have data files with multiple members.
Tom’s suggestion of using RUNQRY for ad hoc queries is a good one, and something I often make use of. Just keep in mind that RUNQRY defaults to the *FIRST file member – if your file has multiple members you’ll need to specify the member you want to view.