Answer Posted / mahendra.ch
1st way to copy records to an other ps.
open input in-file
output out-file.
perform until end-of-file = 'y'
read in-file
at at end move 'y' to end-of-file
not at end
move in-rec to out-rec
write out-rec
end-read
end-perform.
close in-file.
close out-file.
2st way to copy records to an other ps.
we can copy the records by using file-aid tool also.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are the rules of the move verb?
What is the local-storage section?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Name the divisions, which are available in a cobol program?
What is the compute verb? How is it used?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Can you please let me know the centre name of INS certification in Kolkata.
What type of SDLC u followed? Why?
What is the default value(s) for an initialize and what keyword allows for an override of the default?