Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Problem having with SQL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
Author Message
Pankaj Gupta

New User


Joined: 07 May 2008
Posts: 32
Location: Bangalore

PostPosted: Tue May 20, 2008 8:35 pm    Post subject: Problem having with SQL
Reply with quote

Hello everyone,

I am having a problem with my SQLS to access data in IMS DB databases.
It is not compiling but I am having DFSRC000 in my jcls.
Back to top
View user's profile Send private message
References
kalukakkad

Active User


Joined: 10 Mar 2005
Posts: 73

PostPosted: Wed May 21, 2008 12:08 pm    Post subject: Reply to: Problem having with SQL
Reply with quote

Can you give more detail about the problem you are facing.

Your statement below is not clear.

"I am having a problem with my SQLS to access data in IMS DB databases.
It is not compiling but I am having DFSRC000 in my jcls."
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3277
Location: italy

PostPosted: Wed May 21, 2008 12:16 pm    Post subject: Reply to: Problem having with SQL
Reply with quote

not to be rude, but it would be wise to review Your understanding of the issue
and the relations between IMS SQL DFSRRC00
Quote:
I am having a problem with my SQLS to access data in IMS DB databases

SQL is not used to access IMS databases
Quote:
It is not compiling but I am having DFSRC000 in my jcls.

DFSRRC00 is used to run/execute a program ( load module )
ask Your peers or Your support for the proper procedures
to be used for the different tasks

the program containing Your quoted text will not compile because the
format of the query is ... wrong

read and try to understand the error messages and search them in the manual
and if something is not clear post again
Back to top
View user's profile Send private message
Sandy Zimmer

Senior Member


Joined: 13 Jun 2007
Posts: 472
Location: Wilmington, DE

PostPosted: Thu May 29, 2008 5:18 am    Post subject:
Reply with quote

Unless something new and great has happened - IMS is NOT accessible by SQL commands. You would need to write an IMS program to extract data from your DB2 database first - load it - then write and IMS program to retrieve it. IMS is completely different from relational database theory.
Back to top
View user's profile Send private message
Pankaj Gupta

New User


Joined: 07 May 2008
Posts: 32
Location: Bangalore

PostPosted: Sat May 31, 2008 10:00 pm    Post subject:
Reply with quote

But underneath it is being the same databses? There is one database and we can be choosing to use the sqls or ims to retrieve the datas, depending if we are IMS or DB2 programmer.
Back to top
View user's profile Send private message
PeD

Senior Member


Joined: 26 Nov 2005
Posts: 354
Location: Belgium

PostPosted: Sat May 31, 2008 10:27 pm    Post subject:
Reply with quote

maybe VSAm files underneath but relational is not hierarchical
Each has its own access mode
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 9183
Location: 221 B Baker St

PostPosted: Sat May 31, 2008 11:23 pm    Post subject:
Reply with quote

Hello,

Quote:
But underneath it is being the same databses? There is one database and we can be choosing to use the sqls or ims to retrieve the datas, depending if we are IMS or DB2 programmer.
Underneath it is far from being the same "database". Before attempting any more code, i suggest you do some major review of the functionality available to you with each "environment".

While there is some truth to saying that vsam, ims, and db2 are all vsam implementations, there is nothing useful in the statement. While ims and db2 "ride" on "vsam files", these vsam files are not to be used directly by the programmer (ims is in a proprietary format only meant to be accessed by ims and db2 uses something called Linear Data Sets (LDS). If the database is ims, the code uses ims calls. If the database is db2, the code uses sql (one needs to also be careful not to equate DB2, Oracle, and SQLServer sql - they are not completely the same).

Whether to use vsam, ims, or sql is not interchangeable - the coder does not get to choose how data will be accessed. The data needs to be accessed the way it is managed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1