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 / thavasi

Simple and Best answer to your requirement is ICETOOL with
SPLICE operator. It will get you the expected result with
very less no of line of coding.


I had a requirement like this a year before and generated
the o/p using ICETOOL.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2105


Explain what you understand by passing by value.

700


How do you differentiate between cobol and cobol-ii?

656


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2117


Can you please let me know the centre name of INS certification in Kolkata.

1715






input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1876


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

824


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

717


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1931


What are the various section in data division and briefly explain them.

698


How are the next sentence and continue different from each other?

766


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2659


What are the pertinent COBOL commands?

2626


Why occurs cannot be used in 01 level in COBOL?

719


What is Pic 9v99 Indicates in COBOL?

727