Recent content by kckoll

  1. K

    execute .p files from the command line

    Yes, I know how to do that. But the point of this thread is to kick off programs from a cron job. I can do that as long as I don't try to execute any QAD Applications... Pure progress database commands work fine.
  2. K

    execute .p files from the command line

    Thanks, I've already done that. It works great for screen automation, but for anything else, it almost impossible.. Does anyone know if it is possible to launch the Progress Editor from a CIM? I suppose I could add my program to the menu and get to it that way, seems like quite a kludge though.
  3. K

    execute .p files from the command line

    I'm pretty positive that this is an initialization problem. It's one thing to access the database via raw progress commands and twiddle the bits, it's another beast when trying to run QAD's cim's from the command line. Clearly I need the appropriate steps to setup the environment properly for...
  4. K

    execute .p files from the command line

    I'm having problems trying to execute CIM programs from the command line. I get the following error when trying to execute them (they work fine in the progress editor). Shared variable global_user_lang_dir has not yet been created. (392) I have other programs that build reports that work just...
  5. K

    Does anyone have any examples of how to do a conditional include?

    This thread is similar to the other thread I started, "Am I being stupid or what?" I have an include file that I want to pass paramaters to if the condition is meet. The problem I'm having, seems to be with the preprocessor evaluating both the include lines. if infile = "F" then do...
  6. K

    Am I being stupid or what?

    After doing some more reading, I'm pretty sure the preprocessor is having problems with this. I'm not certain how to get around it. I've tried assigning variables for the the include, but that doesn't seem to work either. def var nhdr as int. def var npgz as int. if infile = "F" then do...
  7. K

    Does anyone have any examples of how to do a conditional include?

    Hi, I'm trying to write a program that utilizes conditional includes, something similar to C includes. Is this possible in progress or am I just wasting my time? Regards, Kent
  8. K

    Am I being stupid or what?

    I tried that, in fact I've tried multiple combinations, still the same error message. It almost appears as if the include's are both being loaded. I'm trying to remove the header info so we can import the file into a spreadsheet. Here's more of the program def var RcsId as char init...
  9. K

    Am I being stupid or what?

    I'm trying to change an existing program to turn off headers and page size if the the output source choosen is a file. here is a snippet if infile = "F" then {lib/rpt-open.i &no-header=1 &page-size=0}. else then {lib/rpt-open.i}. I get an error with...
Top