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...


There are a set of 10 files and a customer will be
selecting random no of files(i.e they may be more than 2,
may not be in the order).Sometimes he might just select
one file or sometimes no files at all.How do you code a JCL
for this? Is it possible to code just JCL alone for this
problem?

Answers were Sorted based on User's Feedback



There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / yogendra shinde

Hi,
I don't know the exact answer to this query.
But I have following approach.

Suppose I have a cobol pgm (say) PGM123 that is picking up
files randomly. (We definately need 1 application pgm to
process any of those 10 files randomly. This is my basic
assumption)
I will code a PARM or SYSIN DD * where in my customer can
change order of selection of files .

Say if customer enters PARM as ABCD in order then I will
move this PARM ABCD in a working storage variable in COBOL
PGM and will read each byte A (assign to process file-1)
if second byte is B then process file-2 of third byte is C
then process file-3 and so on. If the cutomer changes this
parm as EDA then files processed will be file-5 then file-4
then file-1.

If any body has different approach pls let me know.

Is This Answer Correct ?    7 Yes 1 No

There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / tony prabu

First of all you can not just do this by jCL alone you
definitely need a application program like COBOL to do this.

Then depending upon the selection using sysin we can select
the file usin the EWVALUATE verb etc.

Is This Answer Correct ?    2 Yes 0 No

There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / piyush mani

obsly file will b either in form of ps or pds so we can
accept the input of user dynamically(sysin/parm) as a ws variable
like this
//sysin *
4
1
5
6
7
/*
//
here 4 is the no of record we r selecting and cobol progr will run the logic of file-open para 4 times
and then we can open the file
as per d user requirement...


this is a cobol approach but how 2 do it by using jcl
plz any1 tell me...

Is This Answer Correct ?    1 Yes 0 No

There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / anshuman

You can also do that through the use of external sort in jcl

Is This Answer Correct ?    0 Yes 0 No

There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / pradeep

Anshuman,

Could you please provide us with some example so that we
can have a clarity on this.

Is This Answer Correct ?    0 Yes 0 No

There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / sunil

really it,s tough to give an ans of this que.would u plz
suggest the actual ans of thi

Is This Answer Correct ?    0 Yes 0 No

There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / bella

if you giving user an option to select u should create CICS
programs with prim screan for selection of any numbers of
files. Or none (exit)

Is This Answer Correct ?    0 Yes 0 No

There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / shridhar

Depending on option it is easy. relate every entry in cics
to a no or alphabet. This use as evaluate in cobol.

as per options create a JCL in cobol an submit it to intrdr
for further process.

Your option on CICS screen and file names relating to those
options should/will be matching.

Is This Answer Correct ?    0 Yes 0 No

There are a set of 10 files and a customer will be selecting random no of files(i.e they may be mo..

Answer / ajay tyagi

Question is not so easy. first of all we need to understand
customer requirement. actually what does he want to do with
files?
once we have clear view then we can suggest some solution
for that.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JCL Interview Questions

How can I override a dsn that is contained in a proc called by another proc? I need to do the override in the calling JCL.

3 Answers  


How can u know the current date using jcl?

2 Answers   iNautix, Wipro,


we define the array like this 01 array 02 veg occurs 10 times 03 days occurs 6 times 04 cost pic 9(5). but why don't we write it as 01 array 02 veg occurs 10 times 03 days occurs 6 time 04 cost pic 9(5). is there any error will occur ,what is it? and why don't 01,02,03 not contain picture clause? if we put pic in those is there any error will occur what is it will occur?

1 Answers   Fidelity,


What is the difference b/w the CLASS,TIME,PRTY in jcl job card.

4 Answers   Syntel,


My JOB contains three steps. //STEP1 EXEC PGM=ABC //STEP2 EXEC PGM=DEF //STEP3 EXEC PGM=GHI My Question is 1) I want to execute second step only. How will do. 2) Soppose U consider above three steps are in PROC steps and I want execute the PROC second step only? How to execute the second step only. During exection time its creating any ABEND? Please let me know..........

2 Answers  


What is the function of //jcllib statement?

0 Answers  


In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???

10 Answers   Perot Systems,


can anyone explain me about sort in jcl with inrec and outrec ?

2 Answers   HCL,


What does a disposition of (new,catlg,keep) for a dsn mean?

0 Answers  


How is a dataset passed from one step to another?

2 Answers   DELL,


what is the restart?hopw it is invoked?

1 Answers  


How to read records in reverse order in flat file?

1 Answers  


Categories