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 difference between run mode and addressing mode?
How dummy is used in jcl?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
how can the same proc be re-used and called by many jobs?
What is the purpose of dd?
What are steplib and joblib?
How do you access an uncatalogued dataset in a jcl?
How to alter the parameters for the existing gdg?
What is jcl in mainframe?
Explain the function of //jcllib statement?
How can an in-stream dataset be terminated?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Explain the job statement in jcl?
what is DD statement is used in JCL?