1,025 pts.
 AS400 – PF
How to View Records from File based on Key List. Generally SQL will display records based retrieval sequence. I want to see it keyed Sequence.

Software/Hardware used:
AS400
ASKED: December 4, 2012  4:37 AM
UPDATED: December 4, 2012  12:45 PM

Answer Wiki:
Create the  WRKQRY and Select sort fields 
Last Wiki Answer Submitted:  December 7, 2012  1:43 pm  by  harith   170 pts.
All Answer Wiki Contributors:  harith   170 pts. , Michael Tidmarsh   11,380 pts. , rajeshece   1,025 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

SQL presents rows in the order that you tell it to present them. If you don’t tell it an order, the order will often be the physical order (but not guaranteed). If you want to see rows in a specific order, use SQL with an ORDER BY clause, or create a query with the order specified, or write a program. — Tom

 107,735 pts.

 

DFU and some third party packages (ezview, dbu) allow viewing of “Logicals” based on logical keys

 44,070 pts.

 

DFU does allow viewing records in key order. The view is one record at a time though. You scroll through record by record. (In S/36 mode, DFU LIST might allow viewing a page of records at a time.) If DFU is not available, the UPDDTA command can do the same if record-by-record is acceptable. — Tom

 107,735 pts.

 

create WRKQRY and Select sort fields

 170 pts.