+ Reply to Thread
Results 1 to 4 of 4

Thread: CL Retrieving program name from a CL program

  1. #1

    Default CL Retrieving program name from a CL program

    If you have TAATOOLS, you can try Retrieve Program Name - RTVPGMNAM. If that's not what you need, perhaps you could explain a bit more of what you are trying to do?

  2. #2
    egalli@lnt.com Guest

    Default CL Retrieving program name from a CL program

    Thanks I just tried it and it works great

  3. #3
    egalli@lnt.com Guest

    Default CL Retrieving program name from a CL program

    How can I retrieve a program name from a cl program?

  4. #4
    Guest.Visitor Guest

    Default CL Retrieving program name from a CL program

    In case you do not have TAATOOLS (or anything similar), you can retrieve the Program Name with the following: &@PGMID is declared as 10 Alpha and &SENDER is declared as 80 Alpha. SndPgmMsg Msg('Retrieve Program Name') ToPgmQ(*Same) RcvMsg Sender(&Sender) Chgvar &@Pgmid Value(%Sst(&Sender 27 10)) The downside to utilizing logic like this is the possibility that IBM change the keywords to the command or the size of any of the fields and make the spacing of the SubString incorrect. I utilize this technique whenever I have to pass the program name or have a CL program working with a Display File and need to Display the program name on the DSPF. This works fine for me and is better than hard-coding the information. Thank you - Lee.

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 12-12-2001, 08:20 AM
  2. Retrieving the Workstation ID from a batch program
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 11-10-2000, 05:37 PM
  3. Call a Java program from a COBOL program?
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 10-23-2000, 12:25 PM
  4. Call a Java program from a COBOL program?
    By Guest.Visitor in forum Application Software
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM
  5. Call a Java program from a Cobol Program?
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts