Write a program that uses move corresponding.



Write a program that uses move corresponding...

Answer / Durgesh Kumar Jha

Here's a simple COBOL program that uses the MOVE CORRESPONDING statement:nnIDENTIFICATION DIVISION.nPROGRAM-ID. move-corresponding.nENVIRONMENT DIVISION.nINPUT-OUTPUT SECTION.nDATA DIVISION.n01 first-record.n 05 field1 PIC X(20).n 05 field2 PIC S9(4).n01 second-record.n 05 copy-field1 PIC X(20) VALUE SPACE.n 05 copy-field2 PIC S9(4) VALUE ZERO.nWORKING-STORAGE SECTION.nPROCEDURE DIVISION.n READ first-record INTO field1, field2.n MOVE CORRESPONDING field1 TO copy-field1.n MOVE CORRESPONDING field2 TO copy-field2.n WRITE second-record.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

If I want to increase the Limit in GDG. What should I do?

1 Answers   IBM,


Which mode is used to operate the sequential file?

1 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please

2 Answers  


Write a program that uses move corresponding.

1 Answers  


what is the difference between PA & PF keys?

1 Answers   IBM,


How do u write test cases?

1 Answers   IBM,


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1 Answers  


The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it

3 Answers   ADP,


how we rectify soc4 and soc7 error in project(need real time answer)? please reply

3 Answers   HCL, Wipro,


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1 Answers  


i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."

4 Answers   CSC,


Categories