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
How jcl is used for testing batch programs?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
How does jcl act on a cobol code?
What is the maximum length of a single line of jcl?
For what purpose steplib and joblib are used ?
Name a few IBM utility programs, and explain its function.
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
Explain the purpose of dd * statement in jcl?
Does jcl support automatic restart?
What is the purpose of dd * statement in jcl?
How can return codes be tested before execution of a job step?
Is condition checking possible in jcl? If yes, how?
what is the use of JCL?
What are the difference between jcl and jes?
Explain how can the attributes of one sms dataset be copied to another dataset?