Saturday, November 20, 2010

T24 Command Line Argument Passing

Argument passing to a Temenos T24 Program can be very helpful, they make program parametrized, one can insert the new parameter with out recompiling the whole program, i found the solution on internet and it found it very easy and helpful.

Sample Program

PROGRAM COMMAND.LINE.PARAM
PARAM.VAL= field(@SENTENCE,' ',2)
CRT 'HELLO ': PARAM.VAL
END
To run the program go jsh console type
jsh ~> COMMAND.LINE.PARAM WORLD
the output will be
HELLO WORLD
another way to do this is to convert ' ' in to Filed Marker i.e. @FM
CLI.PARAMS = @SENTENCE
//convert ' ' to @FM in CLI.PARAMS
now values can be get via following statements.
VAL1 = CLI.PARAMS<1>
VAL2 = CLI.PARAMS<2>
similarly any number of arguments can be pass via command line and get in program via above methods.

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems