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 spool command?

4 Answers  


How to compare 2 files using File-Aid?

1 Answers   IBM,


there are 10 steps in jcl how to execute the steps from step2 to step8 only

6 Answers   EDS,


Define concatenating?

0 Answers  


Max. No of DD statements in a job ?

4 Answers   CSI,






What is maximum length of block size?

5 Answers   Cap Gemini, Kanbay, TCS,


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

0 Answers  


How to DEBUG a JCL?

9 Answers   Satyam,


i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?

1 Answers   IBM,


What is the difference between the positional and keyword parameters? Give examples.

0 Answers  


What is a Proc ? why do we go for a Proc ? What are the types of procs?Can we have nesting in Procs ?

9 Answers   Xansa,


explain concatinating datasets?

1 Answers  


Categories