IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to referance null indicator value


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
agarwalritesh11

New User


Joined: 29 Aug 2007
Posts: 2
Location: bangalore

PostPosted: Mon Dec 31, 2007 2:54 pm
Reply with quote

hi all,
i am using following query.

EXEC SQL
DECLARE ACCOUNT_CURS CURSOR FOR
SELECT A.ACCOUNT_NO
,A.BANK_NO
,A.PRODUCT_C
,A.SUBPRODUCT_C
,A.OPEN_DA
,A.DOWNLOAD_DA
,A.OD_DA
,A.OD_LIMIT_A
,A.FOLLOWUP_DA
,A.CLOSE_DA
,A.ACTUAL_CLOSE_DA
,A.END_DA
.
.skipping middle data
.
FROM DQG1.ORB00HQ.ACCOUNT A
LEFT OUTER JOIN
DQG1.ORB00HQ.AGENCY_COLLECTION BA ON
A.BANK_NO = BA.BANK_NO AND
A.ACCOUNT_NO = BA.ACCOUNT_NO AND
A.PRODUCT_C = BA.PRODUCT_C
LEFT OUTER JOIN
DQG1.ORB00HQ.PAYMENT_RCPT DA ON
A.BANK_NO = DA.BANK_NO AND
A.ACCOUNT_NO = DA.ACCOUNT_NO AND
A.PRODUCT_C = DA.PRODUCT_C
LEFT OUTER JOIN
DQG1.ORB00HQ.TRAIN AE ON
A.BANK_NO = AE.BANK_NO AND
A.ACCOUNT_NO = AE.ACCOUNT_NO AND
A.PRODUCT_C = AE.PRODUCT_C
WHERE A.STATUS_C IN ('END', 'ENP')
WITH URI

here primary key is account no....
base table is ACCOUNT table
problem is here some account no are not present in other tables so when it start writing fetch data for other three table tables it gives SAC7 error.
so what i did i compare one the null indicator value from each of these AGENCY_COLLECTION
PAYMENT_RCPT
Turntable = zero then program went fine but it did written a single record for other three tables (AGENCY_COLLECTION
PAYMENT_RCPT
TRAIN)

Can anybody can help me with this
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 31, 2007 4:19 pm
Reply with quote

SAC7

That' s a system abend...
so apart fixing the fetch algorithm, I would also check the corrcteness of the program

SAC7 is quite a nasty abend, so I would thoroughly check with Your system support group

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA1H731/2.539?SHELF=EZ2MO901&DT=20000407064116&CASE=
Back to top
View user's profile Send private message
agarwalritesh11

New User


Joined: 29 Aug 2007
Posts: 2
Location: bangalore

PostPosted: Mon Dec 31, 2007 5:57 pm
Reply with quote

sorry error is SOC7
bymistake i have written sac7
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Adding 'ODD' and 'EVEN' indicator at ... DFSORT/ICETOOL 6
No new posts Cobol prog to put an indicator on the... JCL & VSAM 1
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
No new posts Uploading from desktop, a CSV file, s... DB2 2
Search our Forums:

Back to Top