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

Allocating DDNAME for a dataset in OMVS


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Midhun Mohandas

New User


Joined: 03 Mar 2014
Posts: 24
Location: India

PostPosted: Thu Jun 19, 2014 5:55 pm
Reply with quote

Hai all,

Please clarify my doubt,

In our RUNJCL we can give like :

//INPUT DD DSN=MYNAME.INPUT.PS,DISP=SHR

So that in our cobol program if we code SELECT NEWFILE ASSIGN TO INPUT, it will use MYNAME.INPUT.PS for INPUT.

Now, if I give export TSOALLLOC=INPUT followed by alloc f(INPUT) dsn('MYNAME.INPUT.PS') shr reuse in OMVS and execute one file handling program having the code SELECT NEWFILE ASSIGN TO INPUT, will it works fine or will it throw error.
Or in other words will 'export TSOALLLOC=INPUT followed by alloc f(INPUT) dsn('MYNAME.INPUT.PS') shr reuse in OMVS' is equivalent to '//INPUT DD DSN=MYNAME.INPUT.PS,DISP=SHR' in JCL..??


If I am wrong, please give me the correct method to do this.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Jun 19, 2014 7:07 pm
Reply with quote

Have you looked at the manual to find the alloc command in OMVS?
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top