how can we pass parameters from JCL to cobol
subprogram...my requirement is i should not get data from
mainprogram but i need it from JCL directly
Answer Posted / kalyani
In three ways we can pass the data from JCL to COBOL
1. By specifying in the PARM parameter
2. Sysindd *
3. Through files we can pass
i.e.,
//disk1 dd dsn=oza047.cobol.file1
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
what are the types of abends that occur on job failure? And explain the possible causes of these
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
What are some jcl statements that are not allowed in procedures?
How to pass data to a program that is coded in an exec statement?
What does a disposition of (new,catlg,keep) for a dsn mean?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
What is timing concept in mainframe?
Does jcl support automatic restart?
What are the rules employed while naming the steps in a job?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What is the function of the dd mgmtclas keyword in sms datasets?
How to submit jcl through a cobol program?
How can a jobs execution priority be modified?
What is the function of job statement in jcl?