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

How do you code Cobol to access a parameter that has been
defined in JCL?

Answer Posted / harish

environemnt division

file1 assign to ddname
file2 assign to ddname

for this in JCL //DDNAME DD DSN.......

LINKAGE SECTION
01 LN-LEN PIC S9(4) COMP.
01 X PIC X
01 Y PIC X
IN JCL THROUGH PARM (MAX 1 TO 100 CHAR)

procedure division.

ACCEPT X
ACCEPT Y.

IN JCL THROUGH SYSIN DD*


pls correct me if anything wrong

HARISH POOMGAME SHIVAPPA(hassan,karnataka)
NIIT TECHNOLOGY
KOLKATA

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the LINKAGE SECTION used in COBOL?

1543


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1371


example for sub strings ? and refernce modifications whit output pls

2329


what are decleratives in cobol?

2273


What is a report item?

1155


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1544


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1183


Which is not true about evaluate statement

2471


What is cobol?

1251


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1337


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1163


Explain about different table spaces.

1118


What is the difference between Call and a Link?

1210


What are the cobol coding sheets?

1289


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

1151