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

Reading File name in Cobol program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pprulz

New User


Joined: 15 Jan 2008
Posts: 6
Location: India

PostPosted: Wed Sep 23, 2009 9:43 pm
Reply with quote

Hi All,

Is there any way by which we can read DSN name of file in cobol program.

i.e.

//JS**** EXEC PGM=PGM1
//INFILE DD DSN=ABC.ABC.ABC

can we read name of the file "ABC.ABC.ABC" in PGM1.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Sep 23, 2009 10:16 pm
Reply with quote

Review this recent (and ongoing) post -

www.ibmmainframes.com/viewtopic.php?t=43971&highlight=

Bill
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Sep 23, 2009 11:32 pm
Reply with quote

Maybe one of these previous topics will be helpful?

www.ibmmainframes.com/viewtopic.php?t=6604
www.ibmmainframes.com/viewtopic.php?t=8828
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
Search our Forums:

Back to Top