|
Thanks everyone for the input. I guess we are stuck between a rock and a hard place... We want the sort just the way it is on the as/400 because this is out "size" field. So when we sort items by their size code they display nicely in alphabetic order by their description. But when we push it over to sql since the sort is not the same we now have something that is say 3" x3" (code = A1) displaying before the 1" X 1" (code = AA) because of the difference in the sort. I will leave it up to the sales department on how to handle this because to change that code to account for the sql server involves thousands of item numbers, then we have to force the sort to go differently on the as/400...... Thanks again everyone!! Angela Wawrzaszek Nucor Steel Auburn IT Department -----Original Message----- From: Phil [mailto:sublime78ska@yahoo.com] Sent: Saturday, October 27, 2001 12:03 AM To: midrange-l@midrange.com Subject: RE: sorting The as/400 is sorting in hex and the sql server is probably sorting based on language id. If you were to bring one of the sql server tables over to the as/400 you'd see it sort hex instead of by language id. You can change your job to sort based on language id: chgjob srtseq(*langidshr) You can compile programs using srtseq(*langidshr) You can also change the ODBC settings to sort differently. I sometimes get a kick at watching users trying to figure out what's going on. They get together, print reports to compare, have meetings. These are usually people in the accounting dept. Phil > -----Original Message----- > From: midrange-l-admin@midrange.com > [mailto:midrange-l-admin@midrange.com]On Behalf Of Angela Wawrzaszek > Sent: Friday, October 26, 2001 1:27 PM > To: Midrange Mail List (E-mail) > Subject: sorting > > > I have a 2 position text field that I am sorting by. The codes > go from AA, > AB...A1, A2... BB, B1 etc. We are sending this to a sql server. > When they > sort it, the order is A1, AA, ...B1, BB The numerics are taking > precedence. They say it is sorting ascii. I thought ascii sort was > alpha/numeric also??? > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) > mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l or email: MIDRANGE-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.