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
Can I send output of job to my remote device careerride123?
What is the format of comment statement?
What are s0c1, s0c4, s0c5, s0c7 and socb?
What is the function of //jcllib statement?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
How can the attributes of one sms dataset be copied to another dataset?
Can we use DISP=SHR in output file in JCL
Define concatenating?
What is condition checking in jcl? Is this possible?
What is the purpose of disp parameter?
how JCL works?
What happens if both JOBLIB & STEPLIB is specified ?
Name what parameter directs the output of the job log dataset?
What is one line to pass PARM from JCL to COBOL?
Explain how can a jobs execution priority be modified?