The STRCPYSCN command's main function is to monitor a remote work station, but you can also use it to document step by step processing. By issuing the following command, every screen will be copied to the output file CPYS in QGPL without the use of the print key.
STRCPYSCN SRCDEV(*REQUESTER) + OUTDEV(*NONE) + OUTFILE(QGPL/CPYS)
You will be prompted with a message telling you that a copy screen request has been issued. You can use "C" to cancel or "G" to continue. Every screen you see will be copied to the output file as soon as you press the enter key. Use the ENDCPYSCN command to end the function. The created file can now be converted to a source file and any necessary editing can be done. To convert the file to a source file use the following:
CPYF FROMFILE(QGPL/CPYS) + TOFILE(QGPL/QRPGSRC) + TOMBR(MBRNAME) + REPLACE(*YES) + FMTOPT(*CVTSRC)
This is useful in documenting operational procedures for your users.
Alon Fluxman Highlands Ranch, Colorado
LATEST COMMENTS
MC Press Online