SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Features and/or Improvements => Topic started by: vslima on April 24, 2020, 04:52:49 PM

Title: PL/I program editor - Defs
Post by: vslima 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.
Title: Re: PL/I program editor - Defs
Post by: patrick 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? 
Title: Re: PL/I program editor - Defs
Post by: patrick 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.