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
 

 

Getting RLCP abend when using substr or mod function in db2

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sathiyendran.erulan

New User


Joined: 04 Mar 2009
Posts: 11
Location: chennai

PostPosted: Sat Sep 15, 2012 2:31 pm    Post subject: Getting RLCP abend when using substr or mod function in db2
Reply with quote

While performing any of the below query getting RLCP abend in CICS screen.
select count(*) into l-nbr-cnt from cust_data where cust_nbr between 100000000 and 999999999 and substr(char(cust_nbr),6,4='4907' and cust_type in (' ','0');
select count(*) into l-nbr-cnt from cust_data where cust_nbr between 100000000 and 999999999 and mod(cust_nbr,10000)=4907 and cust_type in (' ','0');

cust_nbr declared as decimal(9,0) in table and cobol equivalent used in code that PIC s9(9) comp-3.
05 l-nbr-count pic s9(4) comp-4.

Expected output is to retrieve all the cust_nbr ending with 4907.

Please advice me to resolve this abend.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Sep 15, 2012 3:28 pm    Post subject:
Reply with quote

change l-nbr-count to PIC S9(9) COMP.

are CUST_NBR, and CUST_TYPE in an INDEX

Quote:
Expected output is to retrieve all the cust_nbr ending with 4907


well, if that is your expected output,
then change COUNT(*) to CUST_NBR

and why is this being done in CICS?

if that is the 'requirement', the 'requirment' is stupid.

actually, what you should do is:
  • unload CUST_DATA where cust_type in (' ','0')
  • use a SORT product to determine the count of each of the last 4 of CUST_NBR
  • publish the output to everybody that needs this sensitive and important piece of info
  • and then move on to more important business problems
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Sep 15, 2012 4:54 pm    Post subject:
Reply with quote

as far as RLCP abend,
I found this while google'n
Quote:
RLCP is an ABEND code issued by the CANDLE Omegamon CICS Product indicating that
a transaction has exeeded a limit of CPU seconds
set in the OMEGANON Global parameters
for the CICS addresspace being monitored. It can be overridden. Consult OMRGAMON documentation.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Sep 16, 2012 2:50 am    Post subject:
Reply with quote

Hello,

You found some reason to post this same question again?

You were given the same hint about the cause of the RLCP (from me) with confirmation from another member in the original topic.

All this did was to show inconsideration and waste several people's time.

This duplicate is being locked. Maybe TS will now implement properly (in batch).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    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 IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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