For those used to PICK data structure

 

 We assume you have already loaded jBASE and accepted defaults

This is an extremely simplified example of just one way to convert from  Generic PICK to jBASE.  This does not take advantage of many of the advanced features of jBASE, however this will create a functional system and is included simply as an example.  Please call us if you plan on undertaking this conversion and our staff can aid in all aspects from program and proc conversion to data loading.
 

  1. Add new user
        useradd –m –s /bin/ksh jbase_accts
     
  2. Set password for new user
        passwd jbase_accts
     
  3. Change unix user to a jbase user
        login as
    jbase_accts <-- or whatever unix user you just created
        /usr/jbc/bin/IJU (take all defaults)
     
  4. Attach device containing accounts
        t-att FLOPPY0 device=/virtualfloppyname label=R83,500 - D3
     
  5. Restore the accounts
        sysrestore
     
  6. Change permissions so all users can access the new accounts
        chmod -R 775 *
     
  7. Create SYSTEM pointer for all the accounts
        SELECT . # ".]"         <-- selects all the new accounts
        ED /usr/jbc/src/SYSTEM
                or...
        ED /usr/jbc/src/SYSTEM
    account1 account2 <-- for all accounts
        New record
       
    account1  <-- or whatever account is being edited
        .I
        001+D
        002+/home/jbase_accts/
    account1  <-- account edited
        003+
        .FI
        Record 'account1' written to file '/usr/jbc/src/SYSTEM'
     
  8. NOW THREE SEPARATE OPTIONS to BASIC/CATALOG programs

    a. LOGTO an account that QPOINTS to programs
            logto
    account1 <-- account with QPOINTS to programs
            UpdateMD
            BASIC
    BP <-- program filename
            CATALOG
    BP <-- program filename

    b. LOGTO each account with programs (repeat for each)
            logto account1 <-- account with programs
       
        UpdateMD
            BASIC
    BP <-- program file name
            CATALOG
    BP <-- program filename

    c. Either option a or option b and these added steps before BASIC
            JBCDEV_BIN =
    "/Path/for/exe" <-- path to EXE (program) items
            JBCDEV_LIB = "/Path/for/libs" <-- path for .so (subroutine) items
            Then... BASIC and CATALOG the files       
       
  9. Add users who will be using the system or just one to be shared
        useradd –m –s /bin/ksh -G jbase_accts pick <-- user name
        set password and convert to jBASE user as in step 2 and 3
        repeat for all the users
        Add LOGTO
    account to the .profile near the bottom as commented
                                ^ whatever account you want to start in
  10. Extra Notes....
        Be sure to create a POINTER-FILE where you want to store lists.
        This may be in each account or globally Q-POINTED to one shared
       
 
Last modified: 06/24/03
Dan Ell, jBASE International

 

 
 
 
Copyright ® 2008 jBASE International. All rights reserved.
Trademarks & Copyrights