Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
can i pass DB2 command from an application program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
mubashir.surury

New User


Joined: 29 Sep 2005
Posts: 23
Location: Pune

PostPosted: Sun Nov 06, 2005 5:38 pm    Post subject: can i pass DB2 command from an application program
Reply with quote

hello folks,

can i pass DB2 commands (not SQL queries) from my COBOL application. such as to know status of a tablespace. i.e. whether it is locked or not;and what is the system response in that case.
Back to top
View user's profile Send private message

senthilssg

New User


Joined: 09 Dec 2005
Posts: 64
Location: USA

PostPosted: Thu Jan 19, 2006 1:14 pm    Post subject:
Reply with quote

Hi friend,

As per my knowledge , you cant execute the db2 commands in the cobol program .

Where DB2 commands are entered

You can enter commands from the following sources:

 An MVS console or MVS application program
 An IMS terminal or program
 A CICS terminal
 A TSO terminal
 An APF-authorized program
 An IFI application program


Regards,
Senthil

correct me if i'am wrong
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Jan 19, 2006 2:23 pm    Post subject:
Reply with quote

Sure you can, and IBM supplies a special interface for that: IFI.

O.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Jan 19, 2006 2:28 pm    Post subject:
Reply with quote

Another method is to invoke TSO from within COBOL (see example), and using the DSN subcommand.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to convert 2 bytes into single by... pkmurali DB2 4 Fri May 25, 2018 1:41 pm
No new posts Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm
No new posts Program usage statistics? John Poulakos CICS 6 Wed May 16, 2018 2:22 am
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
No new posts IBM Pcomm macro startmacro command do... JGregoire IBM Tools 0 Wed May 09, 2018 12:16 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us