Explain about LMCOPY -

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is their any set of rules for dd? Explain.

653


List in order the hierarchical levels of jcl?

664


How to submit a jcl from cics?

658


What is use of restart and how to use it?

758


what is use of dcb parameter in dd statement?

766






What is condition checking in jcl? Is this possible?

619


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

577


How to do automated restart when a job abend?

787


How would you understand error(execution phase)?

619


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

710


What is the function of the dd dcb keyword?

819


How can values be passed from the job stream to an executable program?

867


Can I share my data with other jobs? How?

663


What is the use of disp parameter?

647


How can the attributes of one sms dataset be copied to another dataset?

846