Explain about LMOPEN -



Explain about LMOPEN -..

Answer / 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

More JCL Interview Questions

What is the function of the steplib dd statement?

0 Answers  


describe the job statement, its meaning,syntax and significant keywords?

1 Answers  


Please explain with syntax and an example, the Inrec fields and Outrec build in sort.

4 Answers   CTS, TCS,


In DCB, what is LRECL,BLKSIZE,DSORG

1 Answers   TCS,


What is the use of the utility DFSRRC00 in the JCL?

2 Answers   Convergys,






hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)

8 Answers  


How to release the Output HELD by using HOLD = YES on DD statement ?

2 Answers   IBM,


i have five step in jcl.my forth step is gdg.gdg was abend.when will job complete,hoe to handle you

3 Answers   L&T, Wipro,


What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?

1 Answers  


What do you understand by jcl?

0 Answers  


What happens if both JOBLIB and STEPLIB is specified ?

8 Answers  


What are three major types of JCL statements? What are their functions?

1 Answers  


Categories