GeekInterview.com
Series: Subject: Topic:
Question: 2 of 231

concatinating two rec by using COBOL & JCL

I need to concatenate records by using cobol and jcl (both) as follows. Input File: AAAAA BBBBB CCCCC DDDDD 11111 22222 33333 44444 Split the file into two halves and 1st rec of first half and 2nd rec of second half records are concatinated and 2nd rec of first half and 2nd rec of second half records are concatinated and so on..... and o/p as given below Output File: AAAAA 11111 BBBBB 22222 CCCCC 33333 DDDDD 44444
Asked by: mannurusrinivasulareddy | Member Since Jun-2010 | Asked on: Sep 6th, 2012

View all questions by mannurusrinivasulareddy   View all answers by mannurusrinivasulareddy

Showing Answers 1 - 1 of 1 Answers
Rajesh.chedhalla

Answered On : Sep 26th, 2012

1. Split the INPUT File into two halves and generate the SEQNUM for each record.
2. Then Join the two files on SEQNUM and Reformat the fields in required format.

  
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

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.