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
What is the function of a dd statement?
What are steplib and joblib? What for they are used?
What does a disposition of (MOD,DELETE,DELETE) mean ?
What is the function of the dd dcb keyword?
Define concatenating?
Describe the various parameters utilized in the creation of a gdg?
How does the jcl specify the job to os?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
What is the purpose of dd?
Can I share my data with other jobs? How?
In sms datasets, what is the function of the dd avgrec keyword?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
How can an in-stream dataset be terminated?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?