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 a GDG? How is it referenced? How is it defined? What is a MODELDSCB?

3 Answers  


Explain about Internal Sort

1 Answers  


how to skip the steps in JCl

2 Answers   EDS,


Is there any command to check wether the ps file is in sorted order?

0 Answers   IBM,


how many types of sorts are there in jcl?

2 Answers   IBM,






what is the meaning of keyword in jcl?what is is opposite?

4 Answers  


Is it possible to code instream data in a PROC?

0 Answers  


delete rules in db2

1 Answers   Keane India Ltd,


Max. No of DD statements in a job ?

4 Answers   CSI,


what is JCL?

0 Answers  


Can we change the LIMIT of GDG?

6 Answers   HCL,


Explain the function of dd disp parameter?

0 Answers  


Categories