store the result from JBase command in a variable

  • NoNo
  • Topic Author
  • Visitor
  • Visitor
12 years 4 months ago - 12 years 4 months ago #12017 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
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.

More
12 years 4 months ago #12018 by durai611
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
  • Visitor
12 years 4 months ago #12034 by Valleyman1
you can also check EB.READLIST

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #12040 by jpb
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