Explain about LMOPEN -

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


Please Help Members By Posting Answers For Below Questions

How jcl work to handle various input output file operations?

658


How to override loadlib?

1428


Explain how can an in-stream dataset be terminated?

702


How does jcl act on a cobol code?

659


Is automatic restart possible in jcl? If yes, how?

657






How can the disposition of sysout datasets be set for an entire jobstream?

840


Name the parameters which can be used to limit the number of records written to a sysout dataset?

654


Can an individual step be restricted from using all the jobs allowed cpu time?

1009


What is the function of the dd dcb keyword?

826


Explain the jcl exec statement?

649


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1351


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

807


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

704


What are steplib and joblib? What for they are used?

695


How can values be passed from the job stream to an executable program?

875