IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

doubt regarding DDNAME parameter in proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srimsc_ibmmainframes

New User


Joined: 17 Feb 2004
Posts: 19
Location: pune

PostPosted: Thu Mar 17, 2005 1:54 pm
Reply with quote

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
View user's profile Send private message
narena

New User


Joined: 16 Mar 2005
Posts: 18

PostPosted: Thu Mar 17, 2005 2:30 pm
Reply with quote

Hi Reddy,

The DDNAME refers to the file name in cobol program of SELECT statment.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Mar 20, 2005 1:57 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top