GeekInterview.com
Series: Subject: Topic:
Question: 5 of 69

Combining first two rec as one rec in third file.

I am having file1 and file2, and result should be as follows in file3 file1 file2 file3 1 11 111 2 12 212 3 13 313 4 14 414 5 15 515 ............................................ .......................................... ............................................ 9 19 919 10 20 1020
Asked by: mannurusrinivasulareddy | Member Since Jun-2010 | Asked on: Mar 23rd, 2012

View all questions by mannurusrinivasulareddy   View all answers by mannurusrinivasulareddy

Showing Answers 1 - 1 of 1 Answers

Here you need to go for a counter variable assume(ws-count)
read FILE-1
count the length of that record and store it in ws-count
move the values from FILE-1 to FILE-3(1:) (make use of reference modification)
read FILE-2
move the values from FILE-2 to FILE-3(ws-count:)
then the resultant will be as you desired
-----------------------
If you have any queries post me

Regards
Siva

Yes  1 User has rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

CICS Interview Questions

COBOL Interview Questions

DB2 Interview Questions

IDMS Interview Questions

JCL Interview Questions

VSAM Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.