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

Physical File name to be read in COBOL Module


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

New User


Joined: 20 Apr 2006
Posts: 9

PostPosted: Wed Apr 07, 2010 11:58 pm
Reply with quote

Hi,
I have a special case where we need to read the Physical File name in COBOL module and based on the name, we have some business logic to perform.

So far, the above logic was being performed by HLASM using DTF macros.

Now we are migrating Assmebler to COBOL and are searching for replacement of above code.

Just to Simplify what we are trying to do

in JCL
//MASTER VGUNDU0.IRTCTC.TIP, DISP=SHR

In COBOL Module

File Section. SELECT MM1 ASSIGN TO MASTER.

We want to read the PHYSICAL DATASET name which is input in the JCL with some ddname, meaning COBOL module should be able to read the file name as VGUNDU0.IRTCTC.TIP.

Hope it's clear.

Please help.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 08, 2010 12:04 am
Reply with quote

search for it, it has been asked and answered on this board - within the last two years.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Thu Apr 08, 2010 5:00 am
Reply with quote

search for TIOT
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: Thu Apr 08, 2010 5:12 am
Reply with quote

Search for LISTDSI (Rexx function) which is for non-VSAM.

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: Thu Apr 08, 2010 7:07 am
Reply with quote

There's this previous topic.
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 8
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 Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top