i have two file, each file having :
file1 is having 2 fields
field1 field2
file2 is having 3 fields
field1 field2 field3
my req is to make it one file like:
field1 field2 field1 field2 field3
if anyone know please send me syntax, i tried this with
DFSORT but could not succeed.
Answer Posted / sivakumar sekharannair
Have an output file with 5 fields
Output file layout
field1field2filed3field4field5
MOVE FIELD1 OF FILE1 TO FIELD1 OF OUTPUT
MOVE FIELD2 OF FILE1 TO FIELD2 OF OUTPUT
MOVE FIELD3 OF FILE1 TO FIELD3 OF OUTPUT
MOVE FIELD1 OF FILE1 TO FIELD4 OF OUTPUT
MOVE FIELD2 OF FILE1 TO FIELD5 OF OUTPUT
WRITE OUPUT FILE
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Which Search verb is equivalent to PERFORM…VARYING?
Write a cobol program making use of the redefine clause.
What do you understand by psb and acb?
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.
Name the divisions, which are available in a cobol program?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what is difference between cobol and cobol/400
What is the local-storage section?
How you can characterize tables in cobol?
What are various search techniques in cobol? Explain.
State the various causes of s0c1, s0c5 and s0c7.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps