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 / shailendra
i think the last ans will give som error due the same
varable name is declare in the same level in fd file3.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you differentiate between cobol and cobol-ii?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
what is the use of outrecord?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
) How do u handle errors in BMS macro?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Name the divisions, which are available in a cobol program?
How do you define a variable of comp-1 and comp-2?
What is the local-storage section?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
How can you get the ksds file records into your cobol program?
HOw can I get the negative sign while deduct high value from low value
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?