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 write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am

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