PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Join the forum, it's quick and easy

PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

SORTING - DESCEND problem

3 posters

Go down

SORTING - DESCEND problem Empty SORTING - DESCEND problem

Post  rajkumar400 Sat Dec 25, 2010 2:41 pm

I have an item# as a key field which is defind with DESCEND. But when i see the record using DBU ( upddta ) it is not showing in decending order.

DBU shows the records as follows:

ITEM#
1
2
5
7

Help me to corrcet this problem.

Raj

rajkumar400

Posts : 59
Join date : 2010-12-25

Back to top Go down

SORTING - DESCEND problem Empty Sorting issue

Post  kushaalrathi Sun Dec 26, 2010 6:58 pm

Run query the file will help you to see the data in descend order

kushaalrathi

Posts : 12
Join date : 2010-12-26

Back to top Go down

SORTING - DESCEND problem Empty Re: SORTING - DESCEND problem

Post  rajkumar400 Wed Dec 29, 2010 2:09 am

Thanks. Tried with runqry but not showing the records in the keyed order.

DBU should show the records in the keyed order but not showing.

rajkumar400

Posts : 59
Join date : 2010-12-25

Back to top Go down

SORTING - DESCEND problem Empty Re: SORTING - DESCEND problem

Post  soundhar Wed Dec 29, 2010 1:39 pm

if u r viewing thru upddta it will show in descending order only,thru runqry it will show in the order in which u entered...

Thru upddta it doesnt show in descending order then check whether u hv used some other keywords or just show ur pf and lf entries now

soundhar

Posts : 67
Join date : 2010-07-14
Location : Vridhachalam/chennai

Back to top Go down

SORTING - DESCEND problem Empty Re: SORTING - DESCEND problem

Post  soundhar Wed Dec 29, 2010 1:42 pm

through runqry u cant see the changes u done on lf ie descend , it will show it in the order u have entered

soundhar

Posts : 67
Join date : 2010-07-14
Location : Vridhachalam/chennai

Back to top Go down

SORTING - DESCEND problem Empty Re: SORTING - DESCEND problem

Post  rajkumar400 Wed Dec 29, 2010 10:43 pm

This is THE code of PF

A R REC1
A ITEM# 5A
A DESC 30A
A LOC 15A
A QTY 7P 0
A K ITEM#


Raj

rajkumar400

Posts : 59
Join date : 2010-12-25

Back to top Go down

SORTING - DESCEND problem Empty Re: SORTING - DESCEND problem

Post  soundhar Fri Dec 31, 2010 9:19 am

Through RUNQRY u cant see the records in descend order brother...
U can view through upddta and from RPG program but thru runqry u cant see... Show LF code also

soundhar

Posts : 67
Join date : 2010-07-14
Location : Vridhachalam/chennai

Back to top Go down

SORTING - DESCEND problem Empty Re: SORTING - DESCEND problem

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum