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

Write a JCL by using the below requirement:
File1 =1, File2 =11 and output needs to come as File3 =111?

Answer Posted / nishant singhal

we can do it by cobol pgm also.
File1=1,file2=11 and

fd file3
01 file3-rec
05 ws1 pic 9(1) value zero.
05 ws2 pic 9(2) value zero.

open file1 in inpute mode and write the record in file3
which is opened in output mode. Now open file2 in input and
file3 in IO mode and update the record.

I think it should work.

Muttiah, would you suggest any better approach by using JCL
thn please share with us. Thanks

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is concatenating?

1045


What do you understand by the terms: joblib and steplib?

1121


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

1340


what is the use of JCL?

1120


what is use of dsn parameter in dd statement?

1129


Explain how can an in-stream dataset be terminated?

1276


i want to store 20 digits . how will u do it in cobol ?

1354


Explain in DD statement what is the use of DCB parameter?

1098


What are the 2 types of parameters in dd statement?

1117


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

1069


Must tape dataset definitions include vol=ser specifications?

1669


How is a type of file defined in the jcl that executes the cobol program?

1152


what is “Cond= even” and “Cond=only”?

1261


What is NOTCAT ?

1289


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1145