store the result from JBase command in a variable
- NoNo
- Topic Author
- Visitor
12 years 4 months ago - 12 years 4 months ago #12017
by NoNo
store the result from JBase command in a variable was created by NoNo
Good morning....
How can I store the result from Jbase command in a variable
I did like this, but it didn't work
pls guide me how to do it
Big thanks in advance
How can I store the result from Jbase command in a variable
I did like this, but it didn't work
PROGRAM TEST
NUM.FT = EXECUTE "COUNT FBNK.FUNDS.TRANSFER$NAU WITH CO.CODE EQ XX0010001
IF NUM.FT GT 0 THEN
DISPLAY "FT ": NUM.FT
END
END
pls guide me how to do it
Big thanks in advance
Last edit: 12 years 4 months ago by NoNo.
Please Log in or Create an account to join the conversation.
- durai611
- Offline
- Elite Member
Less
More
- Posts: 300
- Thank you received: 51
12 years 4 months ago #12018
by durai611
Replied by durai611 on topic Re: store the result from JBase command in a variable
Check this code
PROGRAM TEST.EXECUTE
EX.COMMAND = "COUNT FBNK.FUNDS.TRANSFER$NAU WITH CO.CODE EQ XX0010001"
EXECUTE EX.COMMAND SETTING SETTING.MSG CAPTURING OUTPUT
SYSTEM.RETURN.CODE = @SYSTEM.RETURN.CODE
SELECTED = @SELECTED
CRT SYSTEM.RETURN.CODE ;* Error
CRT SELECTED ;* Selected number of records ( For count there wont be any value)
CRT SETTING.MSG
CRT OUTPUT
STOP
The following user(s) said Thank You: NoNo
Please Log in or Create an account to join the conversation.
- Valleyman1
- Visitor
12 years 4 months ago #12034
by Valleyman1
Replied by Valleyman1 on topic Re: store the result from JBase command in a variable
you can also check EB.READLIST
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired
Less
More
- Posts: 2859
- Thank you received: 649
12 years 4 months ago #12040
by jpb
Replied by jpb on topic Re: store the result from JBase command in a variable
To get the number of unauthorised transactions you can also refer to the enquiry EXCEPTION and the routine behind (E.BUILD.GUI.EXCEPTION from T24.BP / GLOBUS.BP)
The following user(s) said Thank You: NoNo
Please Log in or Create an account to join the conversation.
Time to create page: 0.070 seconds