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 difference between AID and HANDLE AID?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What are the access modes of START statement?
How arrays can be defined in COBOL?
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.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Why did you choose to work with ibm mainframe cobol programming?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Name the sections present in data division.
i need a small 3d program using inline and outline.
How to remove 2 duplicate records and copy only one using job control language?
Define static linking and dynamic linking.
What are declaratives and what are their uses in cobol?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there