Answer Posted / dimpy19
1.The LMOPEN service opens the data set associated with a given data ID so the data set can be either read from, using LMGET, or written to, using LMPUT.
2.The LMINIT service must be completed before LMOPEN can be used.
3.For each LMOPEN invocation, you should invoke a matching LMCLOSE service.
4.The data ID associated with the data set to be opened. The data ID has been generated by the LMINIT service. The maximum length of this parameter is 8 characters.
5.Whether the data set is to be opened for reading or writing. INPUT is the default.
6.INPUT specifies that the dialog invoking the service uses the LMMFIND and LMGET services to read from the data set.
The enqueue value for the LMINIT service can be SHR, EXCLU, or SHRW.
7.OUTPUT specifies that the dialog invoking the service uses LMPUT and either LMMADD or LMMREP to write to the data set, or
uses LMMDEL or LMMREN to change the data set. The enqueue value for the LMINIT service can be EXCLU, SHRW, or MOD
8.
>>-ISPEXEC--LMOPEN--DATAID(data-id)--+----------------------+--->
| .-INPUT--. |
'-OPTION(-+-OUTPUT-+-)-'
>--+------------------+--+------------------+------------------->
'-LRECL(lrecl-var)-' '-RECFM(recfm-var)-'
>--+--------------+--------------------------------------------><
'-ORG(org-var)-'
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is it possible to define dd statements as you want?
what is use of disp parameter in dd statement?
How jcl is used for testing batch programs?
Can we call instream to catalog and catalog to instream?
What is jcl in mainframe?
What is the significance of addrspc parameter in exec statement?
Name what parameter directs the output of the job log dataset?
Explain the purpose of dd dummy statement?
is there any way to execute more than one proc in the same exec statement at the same time..?
Explain the function of //jcllib statement?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
What is timing concept in mainframe?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What do you understand by the terms: joblib and steplib?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?