Need to submit a JCL through Online Screen.

Is it possible to copy a updated record from VSAM file to flat file through online screen.

How could i pass complete VSAM structure to JCL, to copy it to PS.
Any suggestion would be appreciated.

Option 1

. Insert a WRITE WORK statement into your on-line program.
. In a TSO session, ALLOCate the work file, then invoke Natural to execute your (on-line) program.

Option 2

. Create a program to receive a key value and WRITE WORK the associated VSAM structure.
. Create JCL to invoke the new program.
. Embed the JCL in your on-line program and submit it to the internal reader via NATRJE, which is documented in the Utilities manual…