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 

Where Clause in GU/GN Calls

 
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: Thu Mar 27, 2003 8:34 am    Post subject: Where Clause in GU/GN Calls Reply with quote

Hi,

If i have an EXEC DLI GU/GN call, can i use the following WHERE Clause.

Code:
WHERE (Substr(Fieldname,5,3) = '   ')

The entire command would be
Code:
EXEC DLI USING PCB(2) SEGMENT(SEGNAME) WHERE (SUBSTR(FIELDNAME,5,3) = '   ') INTO(IN_REC);

Fieldname is the name of the Field as defined in the DBD and is the Key.

Regards,
Manoj.
Back to top
View user's profile Send private message
vasanthrs
Beginner


Joined: 18 Dec 2003
Posts: 2
Topics: 0

PostPosted: Thu Dec 18, 2003 5:39 am    Post subject: Reply with quote

Hi Manoj Idea
Hope you can't use Where clause in DL/I calls.
What you can do is like you retrieve the data from the database using a GU/GN call and move it to some variable.
after that you can the substring.
Hope this will help you.
Thanks,
_________________
Vasanth.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Dec 18, 2003 6:25 am    Post subject: Reply with quote

manojagrawal,

As Vasanth mentioned IMS is not that flexible like DB2. You need to retrieve the record and then compare the record using reference modification.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bithead
Advanced


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

PostPosted: Thu Dec 18, 2003 11:13 am    Post subject: Reply with quote

IMS has search fields which can be used to select specific segments. They have to be defined to the DBD so you can't just pick any data on the segment. The search field criteria is defined in your SSA.
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