×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Gary,

What you need is to redirect the STDOUT (Standard output) created by the
QSH command to a temp file. Somthing like this:

DLTF QTEMP/QSH_OUT
MONMSG CPF2105

CRTPF QTEMP/QSH_OUT RCDLEN(512)
OVRDBF STDOUT QTEMP/QSH_OUT

(Your QSH command)

DLTOVR STDOUT


Then you can RCVF QSH_OUT and get the number of records.

BTW, to retrieve the number of records in a PF you can simply:

RTVMBR MYLIB/MYFILE NBRCURRCD(&CL_VAR)


HTH,

Luis

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries

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