Shortcut for runqry

Use shortcut for runqry to get quick glace at file or field names or file format name.

File must be in *libl.
Command is RQ Filename.
Runqry with select records screen comes up.


** command

CMD PROMPT('Enter File')
PARM KWD(FILE) TYPE(*CHAR) LEN(10) PROMPT('File +
Name')

--------------------------------

** CL
PGM PARM(&FILE)

DCL VAR(&FILE) TYPE(*CHAR) LEN(10)
MONMSG MSGID(QRY1012 CPF0001)
RUNQRY QRYFILE((&FILE)) RCDSLT(*YES)
ENDPGM

This was first published in April 2001

Dig deeper on RPG iSeries programming

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close