adspace


Suppose I want to code a rexx program in order to get the inputfile and output files of jcl. I want code snippet or the coding for this?

Answer Posted / Surendrakumar

To get the input and output files specified in JCL (Job Control Language) using REXX, you can use the GET parameter function:

```
/* Get input and output DDNAMEs from JCL */
call parse arg x, "jcl=my_jcl"
get ddname input-file = 'DDname(INPUT)' of 'JCL(JCL)' using x.jcl
get ddname output-file = 'DDname(OUTPUT)' of 'JCL(JCL)' using x.jcl"
```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category