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
What is Cataloged Procedures?
when does a dataset go uncataloged?
which utility is used to run a cobol-db2 program?
What is the motivation behind coding class parameter in job statement?
Give the syntax of job specifying jcl statement.
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What is the maximum length of a single line of jcl?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Is it possible to code instream data in a PROC?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
how to do automated restart when a job abends?
Explain how can the attributes of one sms dataset be copied to another dataset?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
Can we use DISP=SHR in output file in JCL
how you will the direct the data to spool using sysout option?