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 |
If I want to increase the Limit in GDG. What should I do?
Which mode is used to operate the sequential file?
how can we code index in an array of cobol pgm?
how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please
Write a program that uses move corresponding.
what is the difference between PA & PF keys?
How do u write test cases?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
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
how we rectify soc4 and soc7 error in project(need real time answer)? please reply
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
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.."