Explain about LMOPEN -
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 |
wht r s722,s822,s122 and s222 abends pls reply fast
How to identify in JCL that an input file is empty without reading it?
how to count the number of members in pds?
i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to another gdg which have version 1 or to the base gdg itself can anyone give me the code pls ?
when does a dataset go uncataloged?
In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step
The maximum number of steps in a job?
I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it possible to control through JOB card?
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
Is stepname is a MUST and should be unique also for each JOBSTEP ? or system can supply the stepname for a step which is not given a name by the programmer ?
A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?
what is a MODELDSCB?