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

can we modify the code in copy book? if it possible how to submit ofter the modification.

3 Answers   IBM, L&T,


What is jcl in mainframe, and how many types of jcl statements are there for a job?

0 Answers  


how do you code a null statement?

0 Answers   IBM,


How do you override a specific DDNAME/SYSIN in PROC from a JCL?

6 Answers   CTS,


What is the differentiation between TRK,cyl, and Bytes... how they can be connected??

2 Answers  






What is the difference between joblib and jcllib statements

7 Answers   IBM, Maples,


How dummy is used in jcl?

0 Answers  


How can a fb file convert to vb file using sort program?

0 Answers  


In DCB, what is LRECL,BLKSIZE,DSORG

1 Answers   TCS,


How do you find which GDG is using which dataset?

3 Answers   Patni,


how to code instream data in procedure?

3 Answers  


i) Difference between ps, esds, ii) Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb

2 Answers  


Categories