Poll

How do I configure SlickEdit to show the internal program procedures? Thanks

PL/I
0 (0%)
Programming editor
0 (0%)

Total Members Voted: 0

Author Topic: PL/I program editor - Defs  (Read 305 times)

vslima

  • New Community Member
  • Posts: 1
  • Hero Points: 0
PL/I program editor - Defs
« on: April 24, 2020, 04:52:49 pm »
I am a new SE user. When editing a PL/I program how do I configure SlickEdit to show the internal procedures under "Defs" tab? Thank you.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1395
  • Hero Points: 128
Re: PL/I program editor - Defs
« Reply #1 on: April 24, 2020, 08:59:38 pm »
It should show internal procedures in the Defs tab by default.

I tried some simple examples of internal procedures, I could see them in the Defs tab. Maybe there's some piece of syntax we're not recognizing in your case.  Do you have a piece of code that you can post that shows internal procedures that aren't getting picked up in Defs? 

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1395
  • Hero Points: 128
Re: PL/I program editor - Defs
« Reply #2 on: April 24, 2020, 11:14:52 pm »
From your PM:

My question I guess is very simple. I simply cannot see any procedure within Defs tab.
Program is something like this:

PGMNAME: PROC OPTIONs(MAIN);
Some line codes
...
PROCEDURE1: PROC:
...
...
END PROCEDURE1;

I want to know how to configure "Tools" menu, so procedure list with respective codes are shown in Defs window.
Thanks


There's no setting to turn it on for this.  As long as the file's mode is PL/I and we can parse the code, it should show up in Defs.  You can double check the file mode by looking at the Document menu, and checking for a "PL/I Options..." entry.  If you have that, we're in the right mode.

From your example, I'd say we're not parsing it, beccause we're not recognizing the colon at the end of "PROCEDURE1: PROC:".  Is that supposed to be a semicolon, so it's "PROCEDURE1: PROC;"?  From the PL/I syntax diagrams, I'd have expected a semicolon there, not a colon, and changing it does make PROCEDURE1 show up in the Defs.