Explain about LMCOPY -
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 |
how many types of sorts are there in jcl?
when can a job time-out occur? How to overcome that?
Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?
I have a COBOL program that Accepts some input data. How do you code the JCL statement for this? ( How do you code instream data in a JCL? )
what is the difference between return code and maxcc?
If we want to see the eliminated duplicate record thru SORT, how its output file will be managed
What is TimeStamp, What is TimeStamp error and What is the Abend Code for TimeStamp Error ?
There is a procedure in A.B.PROCS(PROC1) (member name is PROC1) //PROCA... There is a call to a procedure PROCA from a JOB. //STEP01 EXEC PROCA ... Here "PROCA" in JOB refers to the actual PROC name or the member name of the PDS where this PROCA is stored.
i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?
i have 6 steps in my jcl program after going to 5th step i want to execute 3rd step.....how can i do it....by using(RESTART) can i do it or not?
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include temporary file used for sorting in assign statement?
What is a JCL Command statement ?