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

Is it possible to code instream data in a PROC?

1334


what are the statements that are not valid to be included in an include statement?

1392


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

1549


Is automatic restart possible in jcl? If yes, how?

1118


what is use of dsn parameter in dd statement?

1161


Explain the purpose of dd dummy statement?

1223


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?

1310


How can values be passed from the job stream to an executable program?

1445


How does the jcl specify the job to os?

1159


Can we call instream to catalog and catalog to instream?

1145


What is one line to pass PARM from JCL to COBOL?

4959


what is DSN parameter and DISP parameter is used for?

1149


In sms datasets, what is the function of the dd mgmtclas keyword?

1388


what is the use of IEBGENER utility?

1174


define cond parameter in jcl?

1279