PL/I 
Author Message
 PL/I

Hello,

Sorry for my poor english.

I'm developing on PL/1-COMPILER FUER LE/370 with TSO-Editor.

1 question:

Many years ago, i remember when i declare a variable that wasn't used and
initialised, so on the identifier (attributes and indetifier) this variable
was listed out with begining ********.

Bud now this variable wasn't listed more.

How to know if a declared variable is used or not:

Compiler options used:

AGGREGATE      NODECK         ATTRIBUTES(SHORT)                  
LMESSAGE       NOESD          NOCOMPILE(S)                        
MACRO          NOGONUMBER     CMPAT(V2)                          
NEST           NOGOSTMT       FLAG(I)                            
OBJECT         NOGRAPHIC      LANGUAGE(EN)                        
OFFSET         NOIMPRECISE    LANGLVL(OS,NOSPROG)                
OPTIONS        NOINCLUDE      LINECOUNT(65)                      
SOURCE         NOINTERRUPT    MARGINS(2,72,1)                    
STMT           NOINSOURCE     OPTIMIZE(TIME)                      
STORAGE        NOLIST         NORESPECT                          
               NOMAP          RULES(NOLAXCOMMENT)                
               NOMARGINI      SEQUENCE(73,80)                    
               NOMDECK        SIZE(4932352)                      
               NONUMBER       NOSYNTAX(S)                        
               NOTERMINAL     SYSTEM(MVS)                        
               NOTEST         WINDOW(1950)                        
                              XREF(SHORT)                        

Thanks for answers



Tue, 11 Mar 2003 03:00:00 GMT  
 PL/I
try * process xref(full);
---------------------------------------


Quote:
> This is a multi-part message in MIME format.

> ------=_NextPart_000_01C024B4.2D456650
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit

> Hello,

> Sorry for my poor english.

> I'm developing on PL/1-COMPILER FUER LE/370 with TSO-Editor.

> 1 question:

> Many years ago, i remember when i declare a variable that wasn't used
and
> initialised, so on the identifier (attributes and indetifier) this
variable
> was listed out with begining ********.

> Bud now this variable wasn't listed more.

> How to know if a declared variable is used or not:

> Compiler options used:

> AGGREGATE      NODECK         ATTRIBUTES(SHORT)

[snip]

Sent via Deja.com http://www.deja.com/
Before you buy.



Tue, 11 Mar 2003 03:00:00 GMT  
 PL/I


Quote:
> This is a multi-part message in MIME format.

Please don't post MIME, just plain text! Thank you.

Quote:
> Hello,

> Sorry for my poor english.

Don't mind, we understood what you mean &-)

Quote:

> I'm developing on PL/1-COMPILER FUER LE/370 with TSO-Editor.

Do you mean '5688-235 IBM PL/I for MVS & VM  Ver 1 Rel 1 Mod 1'?

Quote:
> 1 question:

> Many years ago, i remember when i declare a variable that wasn't used
> and initialised, so on the identifier (attributes and indetifier) this
> variable was listed out with begining ********.
> Bud now this variable wasn't listed more.

No, you are fooled by your memory. All variables that are used, but not
declared are marked with some asterisks, not vice versa.
Not-used variables are not marked and were never marked in PL/I AFAIK.

Quote:

> How to know if a declared variable is used or not:

> Compiler options used:

> AGGREGATE      NODECK         ATTRIBUTES(SHORT)
> LMESSAGE       NOESD          NOCOMPILE(S)
> MACRO          NOGONUMBER     CMPAT(V2)
> NEST           NOGOSTMT       FLAG(I)
> OBJECT         NOGRAPHIC      LANGUAGE(EN)
> OFFSET         NOIMPRECISE    LANGLVL(OS,NOSPROG)
> OPTIONS        NOINCLUDE      LINECOUNT(65)
> SOURCE         NOINTERRUPT    MARGINS(2,72,1)
> STMT           NOINSOURCE     OPTIMIZE(TIME)
> STORAGE        NOLIST         NORESPECT
>                NOMAP          RULES(NOLAXCOMMENT)
>                NOMARGINI      SEQUENCE(73,80)
>                NOMDECK        SIZE(4932352)
>                NONUMBER       NOSYNTAX(S)
>                NOTERMINAL     SYSTEM(MVS)
>                NOTEST         WINDOW(1950)
>                               XREF(SHORT)

> Thanks for answers

--
Daniel
------------------------------------------------------------
visit us at:
http://www.winterthur.com

Sent via Deja.com http://www.deja.com/
Before you buy.



Tue, 11 Mar 2003 03:00:00 GMT  
 PL/I
Hi Daniel:

Quote:

.....

> Many years ago, i remember when i declare a variable that wasn't used
> and initialised, so on the identifier (attributes and indetifier) this
> variable was listed out with begining ********.

> Bud now this variable wasn't listed more.

> How to know if a declared variable is used or not:

> Compiler options used:

> AGGREGATE      NODECK         ATTRIBUTES(SHORT)
> LMESSAGE       NOESD          NOCOMPILE(S)
> MACRO          NOGONUMBER     CMPAT(V2)
> NEST           NOGOSTMT       FLAG(I)
> OBJECT         NOGRAPHIC      LANGUAGE(EN)
> OFFSET         NOIMPRECISE    LANGLVL(OS,NOSPROG)
> OPTIONS        NOINCLUDE      LINECOUNT(65)
> SOURCE         NOINTERRUPT    MARGINS(2,72,1)
> STMT           NOINSOURCE     OPTIMIZE(TIME)
> STORAGE        NOLIST         NORESPECT
>               NOMAP          RULES(NOLAXCOMMENT)
>               NOMARGINI      SEQUENCE(73,80)
>               NOMDECK        SIZE(4932352)
>               NONUMBER       NOSYNTAX(S)
>               NOTERMINAL     SYSTEM(MVS)
>               NOTEST         WINDOW(1950)
>                              XREF(SHORT)

> Thanks for answers

This is one of the pieces of information supplied by the xref.  
Look for the cross-reference listing, and in it look for the
variable you are concerned with.  If it is simply listed (with
its attributes), with no lines where it is used also listed
with it, then it's an unused variable.  It is possible that
the option  XREF(SHORT)  causes variables declared but not
used to be omitted entirely from the cross-reference listing;
in that case, try another form of the  XREF  option, perhaps  
XREF(FULL) as one other respondent suggested already, or
XREF=LONG, or ....  as permitted by your compiler.  

--

48 Fairway Hill Crescent, Kingston, Ontario, Canada, K7M 2B4.
Phone:  (613) 546-6988   Fax:  (613) 542-6987



Tue, 11 Mar 2003 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Logo Komeniusz PL (Logo Comenius PL)

2. Derivation of PL/I (was Usenet group for PL/M language)

3. Mapping local files to FILE declarations in PL/I with IBM VisualAge PL./I for Windows

4. Difference PL/1 PL/I

5. What is the difference between DEC PL/1 and OS/390 PL/1

6. Initialization Expressions in PL/I (was ANSI PL/I)

7. Migrating from OS/VS PL/I to VA PL/I

8. PL/I FAQ -- Frequently asked questions about PL/I (minor update)

9. The PL/I Connection (PL/I Newsletter No. 6)

10. How VOS PL/I tames PL/I

11. PL1 JOBS PL/I Jobs PL/1 JOBS

12. It's not PL/1, it's PL/I

 

 
Powered by phpBB® Forum Software