Compiling And Cataloguing Routines In jBASE
Course Agenda <ul><li>Additional directories for compiling in jBASE </li></ul><ul><li>Steps to compile a routine </li></ul...
Compiling and cataloguing in jBASE <ul><li>Additional directories under the bnk.run directory </li></ul><ul><ul><li>globus...
Compiling and cataloguing in jBASE <ul><li>Use EB.COMPILE </li></ul><ul><li>Programs </li></ul><ul><ul><li>Compile </li></...
Compiling And Cataloguing Routines EB.COMPILE TRG.BP TRG.RTN1 COMPILE CATALOG Check for errors Error – Exit No Error Produ...
Compiling And Cataloguing Programs EB.COMPILE TRG.BP TRG.PRG1 COMPILE CATALOG Check for errors Error – Exit No Error Produ...
Executing Routines  Login into T24 Make an entry in the PGM.FILE At the command line TRG.RTN1 Execute the routine JBCOBJEC...
Executing Programs Go to the database prompt jsh..> TRG.PRG1 Execute the program PATH = .;$HOME/globusbin;$HOME/bin;$PATH
Compiling and cataloguing in jBASE <ul><li>JBCDEV_BIN </li></ul><ul><ul><li>Contains the path where the jBASE executables ...
Compiling and cataloguing in jBASE <ul><li>Compile a subroutine </li></ul><ul><ul><li>Compile </li></ul></ul><ul><ul><ul><...
Compiling and cataloguing in jBASE <ul><li>JBCDEV_LIB </li></ul><ul><ul><li>Contains the path where the Globus object code...
Compiling and cataloguing in jBASE <ul><li>Demonstration – Compiling and cataloguing programs and subroutines in jBASE </l...
Execution of programs <ul><li>PATH </li></ul><ul><ul><li>Contains the path of Globus executables along with the path of Un...
Execution of subroutines <ul><li>JBCOBJECTLIST </li></ul><ul><ul><li>Contains the path of the Globus library files </li></...
jshow <ul><li>jshow –a <library filename>  : Object codes in that  library file </li></ul><ul><li>jshow –s <subroutinename...
jshow <ul><li>Demonstration of jshow </li></ul>
Decatalog <ul><li>DECATALOG : Used to decatalog programs and suborutines </li></ul><ul><li>DECATALOG <source directory> <p...
Decatalog <ul><li>Demonstration - DECATALOG </li></ul>
Upcoming SlideShare
Loading in …5
×

7.Compiling And Cataloguing Routines

2,572 views

Published on

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,572
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
70
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

7.Compiling And Cataloguing Routines

  1. 1. Compiling And Cataloguing Routines In jBASE
  2. 2. Course Agenda <ul><li>Additional directories for compiling in jBASE </li></ul><ul><li>Steps to compile a routine </li></ul><ul><li>Steps to compile a program </li></ul><ul><li>Use of JBCDEV_LIB </li></ul><ul><li>Use of JBCDEV_BIN </li></ul><ul><li>Use of JBCOBJECTLIST </li></ul><ul><li>Use of PATH </li></ul><ul><li>Decataloging in jBASE </li></ul><ul><li>Use of jshow </li></ul>
  3. 3. Compiling and cataloguing in jBASE <ul><li>Additional directories under the bnk.run directory </li></ul><ul><ul><li>globusbin </li></ul></ul><ul><ul><li>globuslib </li></ul></ul><ul><ul><li>bin </li></ul></ul><ul><ul><li>lib </li></ul></ul>
  4. 4. Compiling and cataloguing in jBASE <ul><li>Use EB.COMPILE </li></ul><ul><li>Programs </li></ul><ul><ul><li>Compile </li></ul></ul><ul><ul><ul><li>Check for errors </li></ul></ul></ul><ul><ul><ul><li>Produce executable with ‘$’ prefix </li></ul></ul></ul><ul><ul><ul><li>Place the executable under the source directory </li></ul></ul></ul><ul><ul><li>Catalogue </li></ul></ul><ul><ul><ul><li>Place the executable in the path pointed by the JBCDEV_BIN directory </li></ul></ul></ul>
  5. 5. Compiling And Cataloguing Routines EB.COMPILE TRG.BP TRG.RTN1 COMPILE CATALOG Check for errors Error – Exit No Error Produce object code $TRG.RTN1 TRG.BP $TRG.RTN1 Check JBCDEV_LIB $HOME/lib lib.so.1 lib.so.2 Is there place here Is there place here JBCDEV_LIB = $HOME/lib
  6. 6. Compiling And Cataloguing Programs EB.COMPILE TRG.BP TRG.PRG1 COMPILE CATALOG Check for errors Error – Exit No Error Produce executable $TRG.PRG1 TRG.BP $TRG.PRG1 Check JBCDEV_BIN $HOME/bin TRG.PRG1 JBCDEV_BIN = $HOME/bin
  7. 7. Executing Routines Login into T24 Make an entry in the PGM.FILE At the command line TRG.RTN1 Execute the routine JBCOBJECTLIST = $HOME/globuslib;$HOME/lib
  8. 8. Executing Programs Go to the database prompt jsh..> TRG.PRG1 Execute the program PATH = .;$HOME/globusbin;$HOME/bin;$PATH
  9. 9. Compiling and cataloguing in jBASE <ul><li>JBCDEV_BIN </li></ul><ul><ul><li>Contains the path where the jBASE executables are to be placed. </li></ul></ul><ul><ul><li>JBCDEV_BIN = $HOME/bin </li></ul></ul>
  10. 10. Compiling and cataloguing in jBASE <ul><li>Compile a subroutine </li></ul><ul><ul><li>Compile </li></ul></ul><ul><ul><ul><li>Check for errors </li></ul></ul></ul><ul><ul><ul><li>Produce object code with a ‘$’ prefix </li></ul></ul></ul><ul><ul><ul><li>Place it under the source directory </li></ul></ul></ul><ul><ul><li>Catalogue </li></ul></ul><ul><ul><ul><li>Place the object code under one of the library file under the path pointed to by JBCDEV_LIB </li></ul></ul></ul>
  11. 11. Compiling and cataloguing in jBASE <ul><li>JBCDEV_LIB </li></ul><ul><ul><li>Contains the path where the Globus object codes need to be stored </li></ul></ul><ul><ul><li>JBCDEV_LIB = $HOME/lib </li></ul></ul>
  12. 12. Compiling and cataloguing in jBASE <ul><li>Demonstration – Compiling and cataloguing programs and subroutines in jBASE </li></ul>
  13. 13. Execution of programs <ul><li>PATH </li></ul><ul><ul><li>Contains the path of Globus executables along with the path of Unix and jBASE executables. </li></ul></ul><ul><ul><li>PATH = $HOME/bin;$HOME/globusbin;/usr/jbc/bin;$PATH </li></ul></ul>
  14. 14. Execution of subroutines <ul><li>JBCOBJECTLIST </li></ul><ul><ul><li>Contains the path of the Globus library files </li></ul></ul><ul><ul><li>JBCOBJECTLIST = $HOME/lib;$HOME/globuslib </li></ul></ul>
  15. 15. jshow <ul><li>jshow –a <library filename> : Object codes in that library file </li></ul><ul><li>jshow –s <subroutinename> : Library file where the object code can be found </li></ul><ul><li>jshow –c <subroutinename> : Does the job of the –a and the –s option as well as lists the directory where the source of the subroutine is stored </li></ul>
  16. 16. jshow <ul><li>Demonstration of jshow </li></ul>
  17. 17. Decatalog <ul><li>DECATALOG : Used to decatalog programs and suborutines </li></ul><ul><li>DECATALOG <source directory> <program/suborutine> </li></ul><ul><li>Works based on JBCDEV_BIN and JBCDEV_LIB </li></ul>
  18. 18. Decatalog <ul><li>Demonstration - DECATALOG </li></ul>

×