How to overide the symbol parameter in the jcl ?

Answer Posted / abcd

The Jcl using symbolic paramter looks like this
//job1 job 'abcd'
//file set file=test.file1
//disp set disp=NEW,DELETE,DELETE)
//step1 exec pgm=testpgm
//file1 dd dsn=&file,
disp=&disp

The symbolic paramters are &file and &DISP they way to
override them are as follows
//job1 job 'abcd'
//assign proc file1=test.file1,
// DISP=(NEW,DELETE,DELETE)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Matching Logic in Jcl not in cobol.Could any one please answer this question

3672


How does jcl act on code(if you take a cobol program)?

710


Can I send output of job to my remote device careerride123?

668


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

787


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

633






I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

729


What is catelog procedure and how many catelog procedure to use in one job?

7459


Explain the function of a dd statement?

659


Explain the function of dd name parameter with a 2 part structure; audit.report?

899


what is JCL?

698


Explain how can return codes be tested before execution of a job step?

832


What is the function of the dd dcb keyword?

828


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1733


How can values be passed from the job stream to an executable program?

875


What is multithreading in jcl?

941