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

Can anyone tell me the syntax for printing two files at two different destinations in a single step?

3 Answers  


A job has 150 steps i want to execute only 57th step

3 Answers   Cognizant,


Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.

2 Answers   GJ,


can any one plzzzzzz tell the jcl code for creating ps using idcams

2 Answers   Fiserv,


do we need to mention the location of catalogued procedure for each it's call in a single job?

1 Answers  


how do you code a null statement?

0 Answers   IBM,


Explain concatenating datasets?

2 Answers   CTS,


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

0 Answers  


what is the default region size if I dont specify region parametre in my job card ( I know that if I specify region=0k or 0M, then the job will occupy all he available resources at the time of job execution), but I want to know the defult value for "region" paramatre.

5 Answers   BirlaSoft, Infosys,


What is a Proc ? why do we go for a Proc ? What are the types of procs?Can we have nesting in Procs ?

9 Answers   Xansa,


what is the restart?hopw it is invoked?

1 Answers  


. What is the difference between the following statements : I) step#1 exec PGM=accpay ii) step#1 exec tbalance

1 Answers  


Categories