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

How do you reference the following file formats from cobol programs?

1119


What are the different open modes available in cobol?

1142


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1041


) how do u code after getting data?

2070


What is perform what is varying?

1111


What are literals?

1073


Explain the configuration section of a cobol program with examples of syntax.

1122


Which Search verb is equivalent to PERFORM…VARYING?

999


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1154


Mention the guidelines to write a structured cobol program?

1027


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1167


what is the use of outrecord?

2152


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2336


Write down the divisions of cobol program?

1147


Define static linking and dynamic linking.

1108