Explain about LMCOPY -



Explain about LMCOPY -..

Answer / dimpy19

1. The LMCOPY service copies members of a partitioned data set, or copies an entire sequential data set.
2. Completion of the LMINIT service is required before you can invoke LMCOPY.
3. You must specify ENQ(MOD) with the LMINIT service if you want to use LMCOPY to append records to the "to-data-id".
4.FROMID and TODATAID can refer to the same data set but they cannot have the same data-id.
5.LMCOPY does not support the copying of unmovable data sets
6.if from-data-id represents an empty sequential data set, LMCOPY performs the copy but sets the return code to 4 as a warning.


>>-ISPEXEC--LMCOPY--FROMID(from-data-id)------------------------>

>--+---------------------------+--TODATAID(to-data-id)---------->
'-FROMMEM(from-member-name)-'

>--+-----------------------+------------------------------------>
'-TOMEM(to-member-name)-'

>--+---------+--+------+--+-------+--+------+------------------->
'-REPLACE-' '-PACK-' '-TRUNC-' '-LOCK-'

.-ALIAS---.
>--+------------------+--+---------+---------------------------><
'-SCLMSET(-+-Y-+-)-' '-NOALIAS-'
'-N-'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

how JCL works?

0 Answers  


What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?

3 Answers   IBM,


A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

0 Answers   IBM,


How to find the number of duplicates in a file using Sort?

4 Answers   Fidelity,


how to run batch program without jcl?

3 Answers   HSBC, IBM,






What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?

2 Answers  


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

0 Answers  


What are s0c1, s0c4, s0c5, s0c7 and socb?

0 Answers  


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

0 Answers   IBM,


If the proc stepname is excluded while overriding the COND, TIME, REGION and PARM parameters while calling the proc, will the override only apply to the first step in the proc or all the steps for all the above parameters?

2 Answers  


How do you submit JCL via a Cobol program?

4 Answers   IBM,


What is NOTCAT 2

2 Answers   IBM,


Categories