Explain about LMGET�read a logical record from a data set
Answer Posted / dimpy19
1.The LMGET service reads one logical record from the data set associated with the given data ID.
2.Completion of the LMINIT and LMOPEN services for the data set is required before LMGET is invoked.
3.If the data to be processed is a sequential data set, the first LMGET reads the first logical record. Later invocations read successive logical records
4.If the data is an ISPF library or MVS� partitioned data set, previous completion of the LMMFIND service is required in addition to completion of LMINIT and LMOPEN.
The LMGET service reads from the last member referred to by the LMMFIND service in the data sets being processed. Thus, if LMMFIND is issued referencing member A,
LMGET reads from member A. If another LMMFIND is issued referencing member B, LMGET reads from member B, not member A.
>>-ISPEXEC--LMGET--DATAID(data-id)--MODE(-+-MOVE---+-)---------->
+-LOCATE-+
+-INVAR--+
'-MULTX--'
>--DATALOC(dataloc-var)--DATALEN(datalen-var)------------------->
>--MAXLEN(max-length)------------------------------------------><
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the use of JCL?
What is catelog procedure and how many catelog procedure to use in one job?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
What is the function of the steplib dd statement?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
What parameter directs the output of the job log dataset?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
how JCL works?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
How do you submit a job for execution?
How to submit a jcl from cics?
Explain the function of dd disp parameter?
What is the format of comment statement?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?