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

in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2642


What is the use of disp parameter?

1080


What is jcl in mainframe, and how many types of jcl statements are there for a job?

1110


What is the function of the dd dcb keyword?

1271


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

4830


How does the jcl specify the job to os?

1096


What are s0c1, s0c4, s0c5, s0c7 and socb?

1125


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

1235


What is condition checking in jcl? Is this possible?

1058


Explain about LMQUERY�give a dialog information about a data set

1380


What is notcat 2 - gs?

1412


Explain the function of //jcllib statement?

1154


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

1033


How can the submitting users racf authority be overridden in a job stream?

1214


Explain about ISPF/TSO Commands

1866