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 one GDG.
Everyday One new version is being created.Now I want to
split this created version in different files each having
1000 records.
Here Problem is I don't know How many records will be there
in new version of GDG?
that's why I don't know How many Out files we need to use .

Interesting??????????????

Answers were Sorted based on User's Feedback



I have one GDG. Everyday One new version is being created.Now I want to split this created versio..

Answer / ashl

Write a Clist that will take the input file read the first 1000 records and create
an output file. After 1000 records are created the next record should be
written to a new file. The Clist can allocate files during execution.

The timing of the file allocation will be handled logically by the program.
Keep a counter, once it reaches 1000, initialize the variable and and create a
new file.

The output file names will vary with each file.

Execute the Clist as a step in your job and once the step completes the
output should be different files with 1000 records.

Is This Answer Correct ?    5 Yes 0 No

I have one GDG. Everyday One new version is being created.Now I want to split this created versio..

Answer / xx

Give your GDG base in the i/p DD name of SORt step. Use
SPLIT parameter in SORT to complete the task. When you use
GDG base all generation of that GDG will be considered.

Is This Answer Correct ?    4 Yes 0 No

I have one GDG. Everyday One new version is being created.Now I want to split this created versio..

Answer / shridhar

STEP001 : Selcopy/utility to count no of records in GDG.
Just mention GDG base in input to include all versions.

STEP002 : REXX step. define a stem of 1000. read input
batch of 1000 records or if not 1000 then for actual count.
Alloc a new file dynamically. Write these no of records.
Reduce actual count by no of records written.
Repeat procedure untill no of records <= 0.

Is This Answer Correct ?    1 Yes 1 No

I have one GDG. Everyday One new version is being created.Now I want to split this created versio..

Answer / neelu

i think we need to generate a JCL through a cobol program
and then run the Created JCL.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More JCL Interview Questions

How is the keyword DUMMY used in JCL?

4 Answers  


how do u send return code from cobol to jcl ?

2 Answers   TCS,


How to submit jcl through a cobol program?

0 Answers  


What is difference between Return Code, user completion code, Abend code and reason Code?

2 Answers   IBM, Satyam, Wipro,


I have 5 steps in my jcl ,I need to execute first three steps and then 2nd step again ,4th and 5th steps if rc of 2nd step is zero

1 Answers   ABC,


I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?

4 Answers   Cognizant,


How gdg are concatenated?

0 Answers  


which utility is used to update pds?

1 Answers   IBM,


how you will define a temporary dataset in jcl?

1 Answers   IBM,


What is GDG?

1 Answers  


How to empty the records in jcl

1 Answers  


what is a cataloged procedure ?

1 Answers   Xansa,


Categories