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 to execute a set of JCL statements from a COBOL program?

Answer Posted / vishal

we can declare a record in file section and can pass the
statementa to that record as shown..

E.D
fole_control.
select jclfile assign to jcldd
file section.
fd jclfile
01 jcl_record pic x(80).

P.D.
mainpara.
open output jcl_record
move "//job job1, notify=&sysuid" to jcl_record.
move "//step1 exec pgm=pgm1" to jcl_record.
.......
.......
close jcl_record.

then route the file to internal reader INTRDR in jcl
as shown..
//step1 exec pgm=pgm1
//dd3 dd dsn.......
//jcldd dd sysout=(*,INTRDR)

(here the job will get submitted automatically FROM COBOL)

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of condition in cobol and write their forms.

1081


How do you reference the fixed block file formats from cobol programs

1181


How do define dynamic array in cobol.

1100


State the various causes of s0c1, s0c5 and s0c7.

1035


How can you get the ksds file records into your cobol program?

1056


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2543


What the difference is between continue and next sentence?

1121


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3198


What kind of error is trapped by on size error option?

1195


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4129


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2496


What is the LINKAGE SECTION used in COBOL?

1485


how do you reference the printer file formats from cobol programs

1167


how to refer the data field?

2227


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1126