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 / mallikharjuna

it will be processed in 3steps
if the data is AAA
AAA
BBB
CCC

FILE2
DDD
EEE
FFF
LIKE 10 RECS

step1:
srt fields=copy
outrec fields=(1:1,3,4:seqnum,4,ZD,START=1,INCR=2 )

STEP:2

step2:
srt fields=copy
outrec fields=(1:1,3,4:seqnum,4,ZD,START=2,INCR=2 )


STEP=3 SORT FIELDS = COPY
OUTREC FIELDS =(1:1,3)

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the disposition of sysout datasets be set for an entire jobstream?

1348


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

1305


What is job control language?

1095


what is the use of IEBGENER utility?

1174


What do you know about jcl?

1142


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

1239


How is the record format of an output dataset specified?

1161


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

1411


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

1089


what is a jcl?

1141


What does a disposition of (MOD,DELETE,DELETE) mean ?

1135


Explain about LMFREE�free data set from its association with data ID

1634


What is the function of the steplib dd statement?

1207


Explain how can an in-stream dataset be terminated?

1335


What is the function of job statement in jcl?

1096