Read last record in $His
- tantivy
- Topic Author
- Offline
- Junior Member
-
- Posts: 33
- Thank you received: 0
I have a problem about not exist in table live. It moved in table $HIS.
Now I want read the lastest record in $His. How do I?
Thank all!
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
- Posts: 2859
- Thank you received: 650
Please Log in or Create an account to join the conversation.
- tantivy
- Topic Author
- Offline
- Junior Member
-
- Posts: 33
- Thank you received: 0
ID;1 or ID;2 or ID;3 ... or ID;nn is lastest ID in history?
I want know last ID faster as faster in $his!
thank!
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
- Posts: 2859
- Thank you received: 650
The call is done with the normal ID, so without ;nn !
Please Log in or Create an account to join the conversation.
- tantivy
- Topic Author
- Offline
- Junior Member
-
- Posts: 33
- Thank you received: 0
To read last record with RECORD.ID in His
CALL F.READ(FN.TABLE$HIS,RECORD.ID;nn,RES,F.TABLE$HIS,ERROR.CODE)
thank all!
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
- Posts: 2859
- Thank you received: 650
please read carefully the above.
There is no need to supply the history-id when you use F.READ.HISTORY.
Try CALL F.READ.HISTORY(FN.TABLE$HIS,RECORD.ID,RES,F.TABLE$HIS,ERROR.CODE)
If you want to use F.READ there is no other way that doing a select in advance or start reading with ;1 and loop thru till you get an error.
Please Log in or Create an account to join the conversation.
- tantivy
- Topic Author
- Offline
- Junior Member
-
- Posts: 33
- Thank you received: 0
NOW, I USED F.READ.HISTORY!!!
THANKS VERRY MUCH!
Please Log in or Create an account to join the conversation.
- tantivy
- Topic Author
- Offline
- Junior Member
-
- Posts: 33
- Thank you received: 0
I HAVE LAST RECORD FROM THAT BUT I CAN'T KNOW NUMBER OF LAST RECORD!
SUCH AS: 1020477;42 OR 1020477;43 OR 1020477;44
-> HOW DO I KNOW THAT?
THANKS!
Please Log in or Create an account to join the conversation.
- Lars
- Offline
- Premium Member
-
- Posts: 110
- Thank you received: 8
thats your number, eg. for CUSTOMER R.RECORD(EB.CUS.CURR.NO)
Please Log in or Create an account to join the conversation.
- tantivy
- Topic Author
- Offline
- Junior Member
-
- Posts: 33
- Thank you received: 0
THANK Lars!!!
I SAW!!!
Please Log in or Create an account to join the conversation.
- powerstar
- Offline
- New Member
-
- Posts: 2
- Thank you received: 0
CRT 'INPUT LD ID'
INPUT LD.ID
CRT 'INPUT DATE TO'
INPUT DATE.TO
*DATE.TO = 20110506
SELECT.STATEMENT = 'SELECT ':FN.LD.LOANS.AND.DEPOSITS$HIS : 'WITH @ID LIKE': LD.ID : '...' : 'AND CATEGORY GE 21050 AND CATEGORY CATEGORY LE 21074 AND DATE.TIME LE':DATE.TO:'2359' : 'BY-DSND @ID'
LD.LOANS.AND.DEPOSITS$HIS.LIST = ''
LIST.NAME = ''
SELECTED = ''
SYSTEM.RETURN.CODE = ''
CALL EB.READLIST(SELECT.STATEMENT,LD.LOANS.AND.DEPOSITS$HIS.LIST,LIST.NAME,SELECTED,SYSTEM.RETURN.CODE)
*LD.LOANS.AND.DEPOSITS$HIS.LIST = LD1022500123;42VMLD1022500123;41 ........
*LD.LAST.HIS = LD1022500123;42
LD.LAST.HIS = LD.LOANS.AND.DEPOSITS$HIS.LIST<1,1>
CRT LD.LAST.HIS
Please Log in or Create an account to join the conversation.
- tantivy
- Topic Author
- Offline
- Junior Member
-
- Posts: 33
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
- Posts: 2859
- Thank you received: 650
after F.READ.HISTORY the RECORD.ID contains the correct number (including ;nnn)!
Please Log in or Create an account to join the conversation.
- tantivy
- Topic Author
- Offline
- Junior Member
-
- Posts: 33
- Thank you received: 0
:)!
Please Log in or Create an account to join the conversation.
- mbalaji
- Offline
- New Member
-
- Posts: 13
- Thank you received: 6
Please make use of T24 Core routine EB.READ.HISTORY.REC
example:
HIS.ID = FT1234567
FN.FT.HIS = 'F.FUNDS.TRANSFER$HIS' ; F.FT.HIS = ''
CALL OPF(FN.FT.HIS,F.FT.HIS)
HIS.REC = ''
YERROR = ''
CALL EB.READ.HISTORY.REC(F.FT.HIS,HIS.ID,HIST.REC,YERROR)
HIS.REC --->>>>> this variable will hold the latest curr.no record array
Please Log in or Create an account to join the conversation.