Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I have 15 flat files. each record in the files have the
monthly salary for 12 months with the employee number. Now
I want to concatenate the 15 files such that for the
employee numbers that are common the o/p file should have
only one record and the salaries should be concatenated to
that record. How can we do it with JCL?



I have 15 flat files. each record in the files have the monthly salary for 12 months with the empl..

Answer / sk

For understandability just concatenate all the 15 flat file
use of simple concatenation.(It's like use first file name
with DD name and all the other 14 files without DD name and
write in adjucent). so you got the 15 files data in one
file, Next step is , sort the file using key as employee
number and use SUM FIELDS for concatenating the salaries,
so it will remove the duplicateas well as it will get the
concatenated result of the salary.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JCL Interview Questions

The maximum number of in-stream procedure you can code in any JCL is ?

5 Answers  


What are hierarchy levels in jcl?

0 Answers  


In SPACE,what is directory,RLSE

6 Answers   TCS,


What do you do if you do not want to keep all the space allocated to a dataset?

2 Answers  


how to resolve soc-7 ? please tell me

3 Answers   IBM,


If i am going to change some variable in a copybook( size or variable type) ,what are the changes that need to be done in the corresponding JCL.

4 Answers   IBM,


what are the symbolic parameters? why do we use symbolic parameters ?

2 Answers   IBM, TCS, UST, Xansa,


why jobstep can't be more than 255 and for GDG has max limit 255 . Is there any relation between the two

1 Answers   IBM, Perot Systems,


Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?

5 Answers   L&T,


How to concatenate different LRECL of files?

2 Answers   IBM,


Definition of COND parameter in JCL

5 Answers   TCS,


Are there any set of rules for the names of the steps used in a job? What are they?

0 Answers  


Categories