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

I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse order like step4 first then step3,step2,step1?

4 Answers   Broadridge, HCL,


What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?

2 Answers   IBM,


What is the purpose of the PARM keyword in the EXEC statement?

3 Answers  


proc1,proc2,up to proc5 is there if i want to call proc1 and proc5how can u write the code

2 Answers  


Can you execute a PROC from another PROC?

8 Answers   Keane India Ltd,






Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?

6 Answers   IBM,


how will be submit 1 jcl by other jcl? means that how 'll submit one job by other job??

3 Answers   Steria,


How to see the COMP3 value(packd decimal)

2 Answers   iGate,


i am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0

3 Answers  


If a job has 3 steps and step 1 and step 3 should get executed and step 2 should not get executed irrespective of the return code from the previous steps. How can it be done?

5 Answers   TCS,


Can a PS file be read in reverse order?If so,how

2 Answers   Syntel,


How do you submit a job for execution?

0 Answers  


Categories