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
Is their any set of rules for dd? Explain.
List in order the hierarchical levels of jcl?
How to submit a jcl from cics?
What is use of restart and how to use it?
what is use of dcb parameter in dd statement?
What is condition checking in jcl? Is this possible?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
How to do automated restart when a job abend?
How would you understand error(execution phase)?
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?
What is the function of the dd dcb keyword?
How can values be passed from the job stream to an executable program?
Can I share my data with other jobs? How?
What is the use of disp parameter?
How can the attributes of one sms dataset be copied to another dataset?