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 

Doubt in load
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Feb 15, 2007 10:28 am    Post subject: Reply with quote

Kingo,

You keep asking the same question over and over. LOAD utility DOES check the primary key and if duplicate found it routes them to SYSDISC dataset. It is the programmer responsbility to check the sysdisc and abend if it is NO empty. why do you want your job to fail for duplicates?

If the job were to fail , then it would put the table in Lock status which means no one can access the table. This does NOT work for regular business processing.

If you feel that the Job needs to abend in case of duplicates you can open an APAR with IBM and force the abend.

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


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Thu Feb 15, 2007 10:21 pm    Post subject: Reply with quote

Thanks Kolusu

Regds,
Kingo
_________________
IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE.
Back to top
View user's profile Send private message Yahoo Messenger
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Tue Feb 20, 2007 4:46 am    Post subject: Reply with quote

To my knowledge, if there is NO sysdisc dataset allocated and there are duplicates found by the utility, the job does what is wanted: it abends.

regards
Christian
Back to top
View user's profile Send private message
videlord
Beginner


Joined: 09 Dec 2004
Posts: 147
Topics: 19

PostPosted: Tue Feb 20, 2007 3:06 pm    Post subject: Reply with quote

use DISCARD n in you LOAD control
if discarded records exceed n, LOAD abnormal terminated

the default is 0 if you do not specify, no maximum value, the job will normal termnitate regardless of how many records discarded
Back to top
View user's profile Send private message
kingo
Intermediate


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Thu Feb 22, 2007 10:30 pm    Post subject: Reply with quote

Thanks videlord

Regds,
Kingo
_________________
IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE.
Back to top
View user's profile Send private message Yahoo Messenger
kingo
Intermediate


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Thu Mar 01, 2007 11:47 pm    Post subject: Reply with quote

Hi,

Actually I acheived this requirement by unloading then sorted the records where in outrec i included XYZ and loaded to the table.Its fine.I am doing it in three steps?Is there anyway or anyother method to optimise this?

Regds,
Kingo
_________________
IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE.
Back to top
View user's profile Send private message Yahoo Messenger
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Mar 02, 2007 4:15 am    Post subject: Reply with quote

delete the table and redefine it to use a default then you do not need to massage the data. Or you could change the program that creates the data to stick the value into the record or.....
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kingo
Intermediate


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Fri Mar 02, 2007 5:01 am    Post subject: Reply with quote

Is there anyother method to do without deleting the table?

Regds,
Kingo
_________________
IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE.
Back to top
View user's profile Send private message Yahoo Messenger
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Mar 02, 2007 5:16 am    Post subject: Reply with quote

why do you not want to delete the table? all you have to do is unload the data - which you do anyway - and redefine the table, reload your data - end of problem and I gave you an alternative method and you could use DFSORT/ICETOOL (look at the manuals and postings to find out hoe to add data using these tools)
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kingo
Intermediate


Joined: 01 Sep 2006
Posts: 167
Topics: 40
Location: chennai

PostPosted: Fri Mar 02, 2007 5:33 am    Post subject: Reply with quote

Thanks Nic Very Happy

Regds,
Kingo
_________________
IF YOU ARE NOT FOCUSSED ON GOAL ALL YOU SEE IS OBSTACLE.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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