Dec 11, 2003 #1 cdlvj MIS Nov 18, 2003 677 US Is there a way to limit the number of rows returned on a Select. This is Version 6.1. I have Stored Procedures coded, and have set the Dynamic Result set in the DDL. It does not work. Thanks in advance.
Is there a way to limit the number of rows returned on a Select. This is Version 6.1. I have Stored Procedures coded, and have set the Dynamic Result set in the DDL. It does not work. Thanks in advance.
Dec 11, 2003 Thread starter #2 cdlvj MIS Nov 18, 2003 677 US Forgot to mention this is OS/390. Upvote 0 Downvote
Dec 12, 2003 1 #3 MarcLodge Programmer Feb 26, 2002 1,886 GB Cdlvj, Can't remember if this is available in 6.1, but try the FETCH FIRST 5 ROW ONLY option on the SELECT statement Marc Upvote 0 Downvote
Cdlvj, Can't remember if this is available in 6.1, but try the FETCH FIRST 5 ROW ONLY option on the SELECT statement Marc
Dec 12, 2003 1 #4 gregsimpson Programmer Apr 18, 2002 521 Mark, your solution is only available in Version 7 onwards. Cheers Greg Upvote 0 Downvote
Dec 12, 2003 #5 MarcLodge Programmer Feb 26, 2002 1,886 GB Cheers Greg, Looks as if it will have to be done programmatically then. Upvote 0 Downvote
Dec 16, 2003 Thread starter #6 cdlvj MIS Nov 18, 2003 677 US Many thanks for the replies. Will be upgrading to 7 here shortly. Upvote 0 Downvote