These are personal utility commands that I wrote somewhere in my career. They made my life easier. Maybe they will make your life easier. And you can see some examples of simple command definitions. # QRY - Query (List) File Contents This just a quick and dirty shorthand way to look at the contents of a file. You probably know that you can list the contents of a file by `RUNQRY *NONE filename`. I got tried of typing the *NONE and instead wanted to simply enter `QRY filename`. Hence this command. QRY invokes RUNQRY internally. RUNQRY is the runtime component of the old Query/400 product. It you understand Query/400 and you really want to, you can tell QRY to open up for entry of selection criteria. ![QRY Prompter](Images/QRY_1.jpg) ### Typical QRY, file in library list ![Typical QRY](Images/QRY_2.jpg) ### QRY With Selection, specifying the library ![Qry with Selection](Images/QRY_3.jpg) This opens up the RUNQRY selection dialog: ![QRY selection dialog](Images/QRY_3A.jpg) With results like this: ![QRY results](Images/QRY_3B.jpg) ## QRY The command source ## QRYC The CLP command processing program # RC - Display File Record Count This provides a popup window showing the number of records in a file. ![RC example display 1](Images/RC_1A.jpg) It also shows the number of deleted records. If there are greater than 10% deleted this is highlighted: ![RC example Display 2](Images/RC_1B.jpg) You can press F5 and watch any add or delete activity on the file. RC defaults to the *FIRST member, but you can specify a member: ![RC Prompt](Images/RC_2.jpg) I also have a PDM User-Defined RC option: `RC FILE(&O/&N)`. So in PDM I can do: ![RC PDM 1](Images/RC_3A.jpg) which gives this: ![RC PDM 2](Images/RC_3B.jpg) ## RC The command source ## RCC The CLLE source of the command processing program ## RCDD The display file for the window