Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by krickb

  1. krickb

    CAN A CALL BE CLEARED?

    My appologies for repeating myself..I am reposting this with a better subject line. I am having a problem with a cobol program issuing commands to Unix. Here are the commands in the cobol program: CALL "SYSTEM" USING 'cp /mydir/MYFILE1 MYFILE2' CALL "SYSTEM" USING 'lp...
  2. krickb

    I am using a cobol program to issue

    Hi everyone, I am having a problem with a cobol program issuing commands to Unix. Here are the commands in the cobol program: CALL "SYSTEM" USING 'cp /mydir/MYFILE1 MYFILE2' CALL "SYSTEM" USING 'lp -d myprinter_2 /mydir/FILE.TXT' The cobol program then returns this...
  3. krickb

    What does "echo $?" return..

    Thanks.. that helps alot! KB
  4. krickb

    What does "echo $?" return..

    Thanks very much bi...that is what I am looking for! KB
  5. krickb

    What does "echo $?" return..

    I just want to rule out unix as the cause... is "echo $?" a common unix command? (I know that echo is, but what does $? mean? Sorry if these questions seem stupid..I don't have much experience with unix and cobol together. Thanks KB
  6. krickb

    What does "echo $?" return..

    I ran the cobol program i.e. CMPBDDYB The program runs successfully..but when I enter echo $? I get a 12.
  7. krickb

    What does "echo $?" return..

    Daniel, I have tried that already, I am fairly certain it is not a unix return code.. It is not in man. I just wondered if it was a common unix command or if it is unique to the compiler? Thanks for your input though!
  8. krickb

    What does "echo $?" return..

    This is a simplification of my recent question: I really want to know what is "echo $?" returning. I get a 0 when all is well, but I have seen a 1, or a 12 also. They do not seem to be unix return codes. I am executing a microfocus cobol program that has been compiled on Unix with the...
  9. krickb

    I am running Micro focus cobol on U

    Thanks for the advice..it is a program compiled by microfocus cobol.. It must be a mircrofocus return code. I appreciate you taking the time to help.
  10. krickb

    I am running Micro focus cobol on U

    I am running Micro focus cobol on Unix. It is compiled with PRO Cobol. The program runs fine..but when I do an echo $? I get a return code of 1, sometimes 12. I have looked in the error.h file but the return code descriptions do not make sense for the type of program I am running. Im using...
  11. krickb

    Sending output directly to printer on Unix through cobol program

    I have written a program that assembles data and sends it to an HP laserjet printer for printing. I can get it to work on a Windows platform using ASSIGN 'Printername'. However, I am not sure how to do this when I run it on the Unix environment. If I use ASSIGN 'Printername' , I get the...

Part and Inventory Search

Back
Top