Explain about LMCOPY -



Explain about LMCOPY -..

Answer / 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

More JCL Interview Questions

How to DEBUG a JCL?

9 Answers   Satyam,


How can a fb file convert to vb file using sort program?

0 Answers  


How many steps we can overide in the proc's?

2 Answers   CS,


WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

0 Answers  


delete rules in db2

1 Answers   Keane India Ltd,


Can I copy the FB (fixed Block) record length file to a VB (variable Block)record length file and Vise Versa? If Yes then how ? is that thru one of the JCL utility ?

3 Answers  


What is the function of //cntl statement?

0 Answers  


Why do you want to specify the REGION parameter in a JCL step?

4 Answers   Kekran Mekran, TCS,


For how long a job can be executed continuously in a mainframe ?

4 Answers  


What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?

12 Answers   Convergys,


why jobstep can't be more than 255 and for GDG has max limit 255 . Is there any relation between the two

1 Answers   IBM, Perot Systems,


what is a jcl?

0 Answers   IBM,


Categories