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

how to set the dbname run time


IBM Mainframe Forums -> IDMS/ADSO
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Wed Apr 09, 2008 2:50 pm
Reply with quote

Hi,

My application has many DBnames like

1)forecast
2)inventry
3)distribu

but all the 3 db access the same MAPS/DIALOGS .... its set using a CList command

CLIST FORECAST.... while doing this ... I directly get into Common Map with this db enabled.

Like wise it happens for the other 2 tooo.


Query,

Is there any way that I can switch the DBNAME ... runtime?

for instance

1If i have enabled Forecast dbname and in one of the option I want to go to Inventory Database.... how can it be achieved?

Plz help

Thanks
Back to top
View user's profile Send private message
tgortner
Warnings : 1

New User


Joined: 02 Jun 2006
Posts: 4

PostPosted: Thu Apr 10, 2008 12:49 am
Reply with quote

I hope I understand your question right. You would use DCUF SET DBNAME XXXXX at the CV prompt before executing the dialog. It will then be using that DB.
Back to top
View user's profile Send private message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Thu Apr 10, 2008 9:27 am
Reply with quote

Hey

The query is to do it in run time.... like i want to enable it via selecting some menu... not thru the national task code

DCUF SET DBNAME XXXXX... may be it shud be called via some kick offs......
Back to top
View user's profile Send private message
tgortner
Warnings : 1

New User


Joined: 02 Jun 2006
Posts: 4

PostPosted: Mon Apr 14, 2008 7:27 pm
Reply with quote

You can issue a DCUF command from inside a dialog by linking to RHDCUF00. See manual "Callable Services." You could then invoke a different DB by menu option.
Back to top
View user's profile Send private message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Wed Apr 23, 2008 2:29 pm
Reply with quote

Tim,

Thanks for the help. may i know which manual you are referrign to?

my code says

LINK PROG 'RHDCUF00' USING (RHDCUF00-INREC,
RHDCUF00-OUTREC).


Is this what you are referring? Please let me know how this works
Back to top
View user's profile Send private message
tgortner
Warnings : 1

New User


Joined: 02 Jun 2006
Posts: 4

PostPosted: Wed Apr 23, 2008 7:43 pm
Reply with quote

The manual I am referring to is called "Callable Services." Chapter 4 is titled "Invoking DCMT and DCUF Commands from Programs." Your code looks correct. I will attempt to attach the manual to this post.

Attachment Removed. The distriution of copyrighted material is both against the policy of this forum and is illegal.
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 -> IDMS/ADSO

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top