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 two files each contains 10 records. I would like to
copy both files into one output file but in alternate
sequence. for e.g. first record from file1 then record 2
from file2.....

Answer Posted / muttaiah

Mallikarjuna,

If you give sort=copy in step3. the format of o/p file is
rec1 - File1
rec2 - File1
Rec1 - File2
rec2 - File2

change the sort as:
sort fields=(4,4,ZD,A)
outrec fields=(1:1,3)
rec1 - File1
Rec1 - File2
rec2 - File1
rec2 - File2

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of dd * statement in jcl?

1300


What are the 4 fields in dd statement?

1289


Can an individual step be restricted from using all the jobs allowed cpu time?

1568


What do you understand by the term notcat 2 – gs?

1253


Explain the hierarchy levels in jcl?

1693


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

1330


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1259


what are JCLLIB and STEPLIB in JCL?

1184


A dd statement consists of 4 fields. Name them?

1434


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

2421


What are hierarchy levels in jcl?

1529


what are the various stages of job processing?

1296


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

2270


What is the function of dd name parameter with a 2 part structure; audit.report?

1262


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

1243