View previous topic :: View next topic
|
Author |
Message |
srimsc_ibmmainframes
New User
Joined: 17 Feb 2004 Posts: 19 Location: pune
|
|
|
|
Plz let me know what is the use of the DDNAME parameter in cataloged procedures?
if possible plz explain me with a small example |
|
Back to top |
|
|
narena
New User
Joined: 16 Mar 2005 Posts: 18
|
|
|
|
Hi Reddy,
The DDNAME refers to the file name in cobol program of SELECT statment. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi REDDY,
The traditional use of DDNAME= in a cat/proc is to access in-stream data from a cat/proc, since the data itself is not permitted in the proc.
So, you'd do something like:
//s1 exec mycatprc
//instrm dd *
a
b
c
/*
In your cat/proc you'd code:
//ps1 exec pgm=yrpgm
//dd1 dd dns=............
//sysin dd ddname=instrm
This allows the data a, b, c to be read from a cat/proc.
HTH |
|
Back to top |
|
|
|