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
 

 

Query regarding Check data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rexx77

New User


Joined: 14 Apr 2008
Posts: 74
Location: Mysore

PostPosted: Mon Dec 14, 2009 7:42 pm    Post subject: Query regarding Check data
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: 1013
Location: India

PostPosted: Tue Dec 15, 2009 11:46 am    Post subject:
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: 74
Location: Mysore

PostPosted: Tue Dec 15, 2009 7:38 pm    Post subject:
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: 1013
Location: India

PostPosted: Tue Dec 15, 2009 7:52 pm    Post subject:
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    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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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