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


Please Help Members By Posting Answers For Below Questions

I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

710


What is the format of comment statement?

688


How does the jcl specify the job to os?

704


is there any way to execute more than one proc in the same exec statement at the same time..?

2118


Explain about LMQUERY�give a dialog information about a data set

912






Is it possible to left uncode disp?

724


what is the compile process of cobol program expalin with code

2011


Explain how can the submitting users racf authority be overridden in a job stream?

683


a dd statement has 2 types of parameters. Name them?

662


What is jcl in mainframe?

708


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2115


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

10546


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

983


In job processing, what happens in execution stage?

712


How to alter the parameters for the existing gdg?

725