how to submit a jcl by cobol program.
clear me with an example.

Answer Posted / suresh ramaiyan

Let us the program is PGM1. Below is the JCL for running
the PGM1.

//STEP1 EXEC PGM=PGM1
//INSUB DD SYSOUT (* INTRDR)

In the program define INSUB as file (should have a LRECL of
80). Write all the JCL codings into INSUB file.

When you close the INSUB file, the job will be submitted to
JES automatically.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why occurs cannot be used in 01 level in COBOL?

723


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

710


How do define dynamic array in cobol.

679


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

1935


What is the difference between comp and comp-3 usage?

683






What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

725


What the difference is between continue and next sentence?

667


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1528


explain sorting techniques in cobol program?

692


what happens if parmparameter passes zero bytes to the program

1671


Which Search verb is equivalent to PERFORM…VARYING?

694


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

748


Whats the difference between search & search ALL?

5287


How you can characterize tables in cobol?

727


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5385