MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Grouping of Records for Ouput in an IMS DB

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
manojagrawal
Beginner


Joined: 25 Feb 2003
Posts: 124
Topics: 29

PostPosted: Wed Mar 19, 2003 7:28 am    Post subject: Grouping of Records for Ouput in an IMS DB Reply with quote

Hi,

I have an IMS DB.

As we can do in other databases such as DB2 or Oracle, is it possible for us to do a Group By on an IMS DB.

How it is done, i.e., thru PL/I or JCL would not matter. Any Idea's?

Regards,
Manoj. Rolling Eyes
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Mar 19, 2003 10:32 am    Post subject: Reply with quote

No. You can only perform GU or GN or variations. Criteria are set in the SSA similar in function to the WHERE clause but the fields are limited. You cannot ORDER BY.
Back to top
View user's profile Send private message
manojagrawal
Beginner


Joined: 25 Feb 2003
Posts: 124
Topics: 29

PostPosted: Mon Mar 24, 2003 5:41 am    Post subject: Reply with quote

Hi!

Do we have something like Cursors in IMS?

Can we work on a group of records in IMS at a time while using an Application Language such as PLI. After working on the group of records, i wold like to replace it back to the DB. Is this possible!!! Comments Please.

Regards,
Manoj.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Mar 26, 2003 3:20 pm    Post subject: Reply with quote

There are no cursors. Look at setting parentage (command code D) then using GNP to retrieve the records. Do your work then use either GHNP followed by replace or GHU followed by a replace.

You will also want to look at potential locking problems and checkpoint / restart.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group