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 

Producing a guaranteed sample of records from a large file
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
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Mon Jul 14, 2014 4:46 pm    Post subject: Reply with quote

Taking note of Kolusu (and Frank Yaeger) and experimenting is how I learned.

You mean you removed the OUTFIL to see what was happening? Yes, good move. You can always start off with one statement (or those things which you already know what they do) and then add statements one at a time, and look at the output at each stage.

First thing, know the data. Then notice that "if only I could have the data like that, then I could do it". Then work out how to get the data like that.

WHEN=GROUP is really powerful. For instance, you can't intermingle IFTHEN=(WHEN=(logical expression within WHEN=GROUP (WHEN=GROUP and WHEN=INIT are processed first, in order written, and they can be intermingled). So sometimes you use WHEN=GROUP with a condition and RECORDS=1 just to do an "IF" at the correct point.
Back to top
View user's profile Send private message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Tue Jul 15, 2014 12:23 am    Post subject: Reply with quote

Agree completely, William. I also generally test like that (especially with DB2 selects that "should" return data. Comment out one AND at a time until you get something, then you know which condition is "wrong").

Trouble with complicated stuff (like the WHEN=GROUP for me) is that you can muck around 'til the cows come home and still never get nearer the answer.
_________________
Michael
Back to top
View user's profile Send private message Send e-mail
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