Explain about LMINIT - generate a data ID for a data set



Explain about LMINIT - generate a data ID for a data set..

Answer / dimpy19

1.The LMINIT service allows the dialog to associate a data ID for ISPF library or PS or PDS
2. The data ID is generated by LMINIT and can be used to identify the data set for processing by other library access services or the BROWSE or EDIT service
3.If LMINIT is issued with an enqueue (ENQ) of SHRW and LMOPEN is issued with the OUTPUT option, it is essential that an LMCLOSE is issued when the dialog has finished processing the data set,
since the DASD volume is reserved until LMCLOSE is invoked.
4. LMQUERY service to find out how the LMINIT parameters are set
5.The requirements for enqueuing (ENQ) the data within ISPF so that the dialog can use it in the desired manner.
a.SHR shows that the existing data can be shared; default for INPUT in LMOPEN service
b.EXCLU shows that exclusive use of the data is required; for example, when you want to change the data no one else can have access to it.
c.SHRW permits a shared write for the data. This option is used by ISPF Edit. It is used only for a partitioned data set.
In this way, more than one user can read from the data, but members can be rewritten when necessary through an enqueue or dequeue used by Edit.
Edit can now have the data ID open for INPUT and OUTPUT at the same time.
A data set that is allocated with an enqueue of SHRW can be opened for either INPUT or OUTPUT using the LMOPEN service.
d.MOD shows that more records are to be added to the end of a sequential data set. MOD is used with the OUTPUT option of the LMOPEN service.



>>-ISPEXEC--LMINIT--DATAID(data-id-var)------------------------->

>--+-| PROJECT options |-+--+----------------+------------------>
+-DATASET(dsname)-----+ '-VOLUME(serial)-'
'-DDNAME(ddname)------'

>--+--------------------+--+------------------+----------------->
'-PASSWORD(password)-' | .-SHR---. |
'-ENQ(-+-EXCLU-+-)-'
+-SHRW--+
'-MOD---'

>--+--------------+--------------------------------------------><

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

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,


How do you designate a comment in JCL?

1 Answers  


Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?  

1 Answers   TCS,


how to increase the space of a dataset in instream procedure.

1 Answers   HCL,


How is the keyword DUMMY used in JCL?

4 Answers  


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,


how can the same proc be re-used and called by many jobs?

0 Answers   IBM,


How do you override a specific DDNAME/SYSIN in PROC from a JCL?

6 Answers   CTS,


i want apply mainframe devolper with 3+ but i dont have that much of knowledge what isthe solution to get that much of knoweldge?

1 Answers  


in catalog procedure i have step1 dd dsn=filea dd dsn=fileb dd dsn=filec ur concatenaning all the files. but i need to override fileb with file 2 ? can anyone give the ans pls for ths

1 Answers   DELL,


What is the format of comment statement?

0 Answers  


What does IEBGENER do?

10 Answers   BirlaSoft,


Categories