Explain about LMGET�read a logical record from a data set



Explain about LMGET�read a logical record from a data set..

Answer / 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

More JCL Interview Questions

which utility is used to run a cobol-db2 program?

0 Answers   IBM,


How do you access an uncatalogued dataset in a jcl?

0 Answers  


What is the purpose of the dd keylen parameter?

0 Answers  


We are using 2 files , file one has data, file two is empty.Using jcl how can we find the other file is empty?

9 Answers   CSC, IBM,


I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this step is going into second step as a input, and this second step is abended , now how could i approach in this case.

5 Answers   Bank Of America,






What is a procedure?

1 Answers  


how do you code a null statement?

0 Answers   IBM,


If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how it can be coded in JCL/

10 Answers   IBM,


What is S322 abend ?

5 Answers  


Which is the most widely used batch performance monitor for DB2?

2 Answers  


What is COND=EVEN ?

9 Answers   IBM,


Explain about LMOPEN -

1 Answers  


Categories