Program to display "Hello World!"
Step 1Write a program to display the string “HELLO WORLD” and store it under the BP directory.
Consolidated Solution
JED BP HELLO
New record.PROGRAM HELLO
CRT "HELLO WORLD"
END
"HELLO" filed in file "BP".
JED is the jBASE editor.
Step 2
Compile and catalog the program. Since this is a local program, the executable needs to go to "bin" and not "globusbin". Therefore check the value of JBCDEV_BIN. If it is pointing to any other directory other than bin change it to point to bin.
echo $JBCDEV_BIN
Note the output. If it is anything other than the bin directory then change the value of JBCDEV_BIN as followsexport JBCDEV_BIN=$HOME/bin
Please note that the above statement will only change the value of JBCDEV_BIN for the current session. If you want this change to be permanent, then make the change in the .profile file, logout and login for the change the take effect.Please ensure that PATH first points to $HOME/bin, as, if there is a program with the same name and its executable resides in "globusbin" or any other directory that is specified first in PATH, then that program only would get executed.
EB.COMPILE BP HELLO
Up mentions is the command to compile and catalog a program. BP is the source directory name where the source code of the program resides.Step 3
Execute the program by typing the following statement at the database prompt.
Jsh-->HELLO
Output of programs is HELLO WORLD
Congratulation you successfully write an infobasic program.
More Tutorials on Temenos InfoBasic will be available so keep in touch...
1 comments:
HOW TO PRINT SOMETHING IN SAME LINE WHEN USING LOOPS LIKE FOR, WHILE, UNTIL?
Post a Comment