Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us