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 

How to remove duplicate records by using ICETOOL for VB
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Mon Sep 26, 2005 9:03 am    Post subject: Reply with quote

Mervyn,

The limit is 4092 bytes. (not 4093 as mentioned in my earlier post).

Check this link==> http://www.mvsforums.com/helpboards/viewtopic.php?t=4842

Frank didn't comment anything over the length. So, I believe 4092 is the limit with DFSORT too.

Thanks,
Phantom
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Sep 26, 2005 9:06 am    Post subject: Reply with quote

Mervyn,

If you look at your toolmsg , you would have found this

Code:

SELECT FROM(T1) TO(OUT) ON(1,14834,BI) NODUPS USING(CTL2) 
                              $


The select operator can only have 1500 of BI/CH data bytes as max.

check this link which explains in detail about the SELECT operand descriptions.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA00/6.11.1?SHELF=&DT=20031124143823&CASE=

So you need to split the control card into chunks of 1500 bytes. You can have a max of 10 ON fields.

try this

Code:

SELECT FROM(T1) TO(OUT) ON(00001,1500,BI)   -
                        ON(01501,1500,BI)   -
                        ON(03001,1500,BI)   -
                        ON(04501,1500,BI)   -
                        ON(06001,1500,BI)   -
                        ON(07501,1500,BI)   -
                        ON(09001,1500,BI)   -
                        ON(10501,1500,BI)   -
                        ON(12001,1500,BI)   -
                        ON(13501,1334,BI)   -
 NODUPS USING(CTL2) 



Hope this helps...

Cheers

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


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

PostPosted: Mon Sep 26, 2005 9:07 am    Post subject: Reply with quote

Quote:

Mervyn,

The limit is 4092 bytes. (not 4093 as mentioned in my earlier post).


Phantom,

Nope ! The select statement has a max of only 1500 bytes. Check the link provided in above post.

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


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Mon Sep 26, 2005 9:12 am    Post subject: Reply with quote

Thanks for the info Kolusu,

Never realized that there was such a difference.

Question:
In your previous post, you said you can divide the 15000 bytes into chunks of 1500 bytes each. Is the same thing possible with SORT command ? I think I have posted a question on this longgg back where SORT FIELDS exceeds the limits. That time I tried splitting the data into chunks but - no use.

I know SORT & SELECT are two different statements having separate functions, but just curious.

Thanks,
Phantom
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Mon Sep 26, 2005 9:33 am    Post subject: Reply with quote

Yes, I spotted the 1500 limit just after I posted, then had to join a telephone conference.

Thanks for the tip on splitting the ON statement. I might well have spent a lot of time working that one out.


Cheers,
Merv
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Mon Sep 26, 2005 10:23 am    Post subject: Reply with quote

Well, I ran it again with the split ON statement, but failed. Quickref gave me the reason:

Code:

 Item ==>                                               * MVS/QuickRef 6.3 *                     
 Command ==>                                                                                     
 ICE189A 0 BLOCKSET REQUIRED BUT COULD NOT BE USED - REASON CODE IS 63                           
 ----------------------------------------- V=IBM P=DFSORT MSGS & CODES R=V1R14 I=ICE189A
                                                                                                 
| 63   Too many control fields were specified or control fields were too                         
|      large.     


I reasoned that I could live with just checking the first part of each record, so I cut it down to the first 3000 bytes. This time, I had resourcing issues with SORTWK. I'll try again tomorrow, when there should be more resources available.

Cheers,
Merv
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Sep 26, 2005 11:34 am    Post subject: Reply with quote

Quote:
Frank didn't comment anything over the length. So, I believe 4092 is the limit with DFSORT too.


I couldn't comment earlier since I just got into work. I'm on the West Coast of the U.S. so I don't see the questions as early as other people. (This usually means that Kolusu or somebody else has answered the question by the time I see it which tends to limit my participation on this board.)

With SELECT, you can use up to 1500 bytes for a BI ON field. You can use multiple ON fields. But you can't use more than about 4K bytes total for the ON fields because that's the limit for the sort control statement (SELECT does a sort). So you can't SELECT on 14K+ bytes.

Looks like Merv was able to cut if down to 3000 bytes which is allowed with multiple ON fields.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Sep 27, 2005 12:08 am    Post subject: Reply with quote

Frank,

Quote:

I couldn't comment earlier since I just got into work. I'm on the West Coast of the U.S. so I don't see the questions as early as other people.


I was not referring to Mervyn's post. I was mentioning about your response in the link that I gave to Mervyn. Here you highlighted the possible issues with mixed Signs when we use CH/BI for the entire record. But never said anything about the 4092 limit with SORT statement.

http://www.mvsforums.com/helpboards/viewtopic.php?t=4842

I apologize if my statement was not clear. Since I posted two messages in succession, it was a continuous flow for me, but for an external reader it looks otherwise. I didn't realise that.

Thanks,
Phantom
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Tue Sep 27, 2005 4:16 am    Post subject: Reply with quote

Just to confirm I got the job running this morning.

Thanks for your help, guys.

Cheers,
Merv
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Tue Sep 27, 2005 9:57 am    Post subject: Reply with quote

Phantom,

In that thread, we were talking about a length of 4043 (at least I think we were). Since the 4K limit was not relevent for that thread, I didn't mention it.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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