Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

E Pl/i - How to display INIT value in load module....

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
rbrkumaran1

New User


Joined: 12 Mar 2008
Posts: 7
Location: India

PostPosted: Thu Jun 10, 2010 12:58 pm    Post subject: E Pl/i - How to display INIT value in load module....
Reply with quote

I am in the migration of MVS to Enterprise Pl/i.

Currently in MVS version, we display the change version, compile time and copyright information in the load module by having dummy variables initialized with those information.

With E PL/i, we are not able to see the same in the load module. Is there any compile option or something I am missing for E PL/i?


Please provide me a solution

Sample:

Code:

%DCL COMP_TIME CHAR;                                                 
%DCL COPY_MSG  CHAR;                                                 
%COMP_TIME=''''||COMPILETIME||'''';                                   
%COPY_MSG ='''@   COPYRIGHT SAMPLE INC., 20' ||  SUBSTR(COMP_TIME,9,2) || '   @''';
DCL 1 AF01_TRIGGER,                                                   
      2 COMPDTE CHAR(20) INIT(COMP_TIME),                             
      2 LEVEL   CHAR(03) INIT('17 '           ),           
      2 FILL_2  CHAR(05) INIT(' VER:'         ),                     
      2 PGMNAME CHAR(08) INIT(' PGM1289'      ),                     
      2 FILL_0  CHAR(45) INIT(                                       
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
        COPY_MSG);
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Thu Jun 10, 2010 1:20 pm    Post subject: Reply to: E Pl/i - How to display INIT value in load module.
Reply with quote

get the assembler listing for a simple hallo world program
see what gets generated and start from there

just guessing ...
e/PLI optimization might be more aggressive and discard all the unreferenced variables
Back to top
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Thu Jun 10, 2010 3:48 pm    Post subject: Re: Reply to: E Pl/i - How to display INIT value in load mod
Reply with quote

enrico-sorichetti wrote:
just guessing ...
e/PLI optimization might be more aggressive and discard all the unreferenced variables


Correct, but there is a compiler option to keep some of them, "STATIC(FULL)". Don't know in which version it was introduced, the oldest manual I have here if for EP V3R5 and here it was present.

Don't know if there is a way to keep unused AUTOMATIC variables, but if you change the init of one of the fields in your structure to an assignment, that should do the trick.
Back to top
View user's profile Send private message
rbrkumaran1

New User


Joined: 12 Mar 2008
Posts: 7
Location: India

PostPosted: Thu Jun 10, 2010 7:04 pm    Post subject: Re: Reply to: E Pl/i - How to display INIT value in load mod
Reply with quote

enrico-sorichetti wrote:
get the assembler listing for a simple hallo world program
see what gets generated and start from there

just guessing ...
e/PLI optimization might be more aggressive and discard all the unreferenced variables


You guessing is correct... It flushed the unreferenced variables. .... Thanks a lot for your solution...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us