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

Query regarding Check data


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

New User


Joined: 14 Apr 2008
Posts: 78
Location: Mysore

PostPosted: Mon Dec 14, 2009 7:42 pm
Reply with quote

Greetings.

I wanted to run check data utility on a particular table which is in check pending mode.

I am using the following JCL to run the check data.

Code:

//STEP1 EXEC DSNUPROC,UID='ABCDEF',SYSTEM='XXXX'
//SYSUDUMP DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//SYSIN  DD *
CHECK DATA TABLESPACE XXXXXX.XXXXXX
 FOR EXCEPTION IN SCHEMA.TABLENAME USE SYSERR
 DELETE NO
/*


i wanted to see the records which does not satisfy the constraint check in a dataset, how to modify the above jcl control card.

I have created a file USERID.SYSERR but it is searching for USERID.SYSERR table. Even i know USE CLause will search for table only but i cant create any table for this purpose.

I would appreciate if some one out there has any ideas
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Dec 15, 2009 11:46 am
Reply with quote

Greetings rexx77,

Quote:
I wanted to see the records which does not satisfy the constraint check in a dataset

Sorry to break you the bad news. CHECK utility doesn't check data in a dataset.

Quote:
I have created a file USERID.SYSERR but it is searching for USERID.SYSERR table. Even i know USE CLause will search for table only but i cant create any table for this purpose.

Why?

Quote:
I would appreciate if some one out there has any ideas

You can write a program to CHECK your check constraints using your input dataset.
OR
Create a exception table.
Run CHECK utility.
OR
Make plans to alter your batch programs so that only valid data is loaded into the table.

Sushanth
Back to top
View user's profile Send private message
rexx77

New User


Joined: 14 Apr 2008
Posts: 78
Location: Mysore

PostPosted: Tue Dec 15, 2009 7:38 pm
Reply with quote

Thanks Sushanth...

Just out of curiosity, i wanted to know is there any impact in creating exception table?....

I dont have any idea of exception tables, i will go through the literature.. I will get to back to this forum when i have a doubt.

Many thanks....
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Dec 15, 2009 7:52 pm
Reply with quote

rexx77,

Quote:
Just out of curiosity, i wanted to know is there any impact in creating exception table?....


Impact hmmm. Yes, one additional object in the subsystem.

Quote:
I dont have any idea of exception tables, i will go through the literature.. I will get to back to this forum when i have a doubt.

Good.


Sushanth
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 1
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top