<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: COBOL Link Fails on Integrity in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103936#M43801</link>
    <description>Homer,&lt;BR /&gt;&lt;BR /&gt;The Cobol code in question probably uses definitions similar to:&lt;BR /&gt;&lt;BR /&gt;05  PSL$C_KERNEL PIC S9(09) COMP VALUE EXTERNAL PSL$C_KERNEL.&lt;BR /&gt;&lt;BR /&gt;One possible is to just define the values there and then. Some will suggest this is not 'clean', maybe even sloppy, but it is actually perfectly safe and typically more efficient then to make the linker/image activator get involved. &lt;BR /&gt;Just replace with:&lt;BR /&gt;&lt;BR /&gt;05  PSL$C_KERNEL PIC S9(09) COMP VALUE 0.&lt;BR /&gt;&lt;BR /&gt;The other values can be gleemed from:&lt;BR /&gt;&lt;BR /&gt;$ libr/extr=$psldef/out=tt: sys$library:starlet.mlb&lt;BR /&gt;&lt;BR /&gt;They are not going to change. Ever. Trust me :-).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The right way to approach this problem is to figure out there they are defined on your Alpha.&lt;BR /&gt;To do so just LINK with /MAP/CROSS and search for the symbols. That will lead you to the module.&lt;BR /&gt;&lt;BR /&gt;Create a similar module, in a similar place on the I64 and presto. &lt;BR /&gt;&lt;BR /&gt;John's instructions give you the details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 17 Apr 2008 01:56:11 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-04-17T01:56:11Z</dc:date>
    <item>
      <title>COBOL Link Fails on Integrity</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103933#M43798</link>
      <description>&lt;!--!*#--&gt;I need a little help figuring out where to go next.  Let me explain what I've done so far, and where I need some help.&lt;BR /&gt;&lt;BR /&gt;My Integrity Server (Rx2660 OpenVMS v 8.3) is a new server.  I tried to set it up to be like my DS20 v 7.1-2 as far as logicals and symbols defined during startup and login.  &lt;BR /&gt;&lt;BR /&gt;These are a development servers.&lt;BR /&gt;&lt;BR /&gt;When I compile and link a certain program on the new system, I get the following link errors:&lt;BR /&gt;&lt;BR /&gt;%ILINK-W-USEUNDEF, undefined symbol PSL$C_USER referenced&lt;BR /&gt;        section: $PDATA$&lt;BR /&gt;        offset: %X0000000000000004&lt;BR /&gt;        module: PRMDSP &lt;BR /&gt;        file: DMS_DR:[OLB]COBOBJ.OLB;1 &lt;BR /&gt;%ILINK-W-USEUNDEF, undefined symbol PSL$C_SUPER referenced&lt;BR /&gt;        section: $PDATA$&lt;BR /&gt;        offset: %X0000000000000006&lt;BR /&gt;        module: PRMDSP &lt;BR /&gt;        file: DMS_DR:[OLB]COBOBJ.OLB;1 &lt;BR /&gt;%ILINK-W-USEUNDEF, undefined symbol PSL$C_EXEC referenced&lt;BR /&gt;        section: $PDATA$&lt;BR /&gt;        offset: %X0000000000000008&lt;BR /&gt;        module: PRMDSP &lt;BR /&gt;        file: DMS_DR:[OLB]COBOBJ.OLB;1 &lt;BR /&gt;%ILINK-W-USEUNDEF, undefined symbol PSL$C_KERNEL referenced&lt;BR /&gt;        section: $PDATA$&lt;BR /&gt;        offset: %X000000000000000A&lt;BR /&gt;        module: PRMDSP &lt;BR /&gt;        file: DMS_DR:[OLB]COBOBJ.OLB;1 &lt;BR /&gt;&lt;BR /&gt;(Among others, but one thing at a time.  They're probably related.)  The main program links and runs fine on the Alpha.&lt;BR /&gt;&lt;BR /&gt;I have no idea what section $PDATA$ is.&lt;BR /&gt;&lt;BR /&gt;I looked in the module PRMDSP, which compiles just fine and is in the library, looking for uses or definitions of these symbols.  Didn't see anything.  Did a little googling, and I see that these symbols are related to the system service $create_gpfile.  Apparently created by &lt;BR /&gt;&lt;BR /&gt;"The $PSLDEF macro in STARLET.MLB and the file PSLDEF.H in SYS$STARLET_C.TLB define the following symbols and their values for the four access modes:"&lt;BR /&gt;&lt;BR /&gt;And then they list my undefined symbols.&lt;BR /&gt;&lt;BR /&gt;Now I'm starting to get wrapped around the axle.  Can anyone point me in right direction?&lt;BR /&gt;&lt;BR /&gt;Is there some system parameter that I should have setup that would have defined these symbols?  Or does something work differently on the new platform so that I need to change some code?  Or is there something else that I'm missing completely.  That's my guess. :0)&lt;BR /&gt;&lt;BR /&gt;Thanks for any help you can offer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2008 17:44:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103933#M43798</guid>
      <dc:creator>Homer Shoemaker</dc:creator>
      <dc:date>2008-04-16T17:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: COBOL Link Fails on Integrity</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103934#M43799</link>
      <description>Sometimes writing it all down and trying not to look too bad when you ask the question is helpful in solving the problem.&lt;BR /&gt;&lt;BR /&gt;I think I need to install $PSLDEF in my COBOL object library.  Does that make sense?&lt;BR /&gt;&lt;BR /&gt;I'll keep plugging away.  If you see me going too far afield, jump right in.</description>
      <pubDate>Wed, 16 Apr 2008 18:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103934#M43799</guid>
      <dc:creator>Homer Shoemaker</dc:creator>
      <dc:date>2008-04-16T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: COBOL Link Fails on Integrity</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103935#M43800</link>
      <description>Homer,&lt;BR /&gt;&lt;BR /&gt;  PSL$ symbols are associated with inner mode data structures and aren't normally visible in the default libraries searched by LINK.&lt;BR /&gt;&lt;BR /&gt;  The PSL is the "Processor Status Longword" which is an internal register which keeps track of things like your current and previous modes. In general it's rare that a usermode program would care about modes, and therefore it's not considered necessary for the symbols to be generally available.&lt;BR /&gt;&lt;BR /&gt;  COBOL doesn't have the same mechanisms as MACRO32 and C for defining obscure symbols, so the usual trick would be to create an object module with the symbols globalised using MACRO32 and LINKing that with your program:&lt;BR /&gt;&lt;BR /&gt;$ CREATE PSLDEF.MAR&lt;BR /&gt;   $PSLDEF GLOBAL&lt;BR /&gt;   .END&lt;BR /&gt;$ MACRO PSLDEF&lt;BR /&gt;$ LINK yourprogram+PSLDEF+wheverelse&lt;BR /&gt;&lt;BR /&gt;It's possible that a similar module has been added to one of the system standard libraries on your Alpha. I don't think this is a good idea. The evidence of your confusion in moving this code to a new system and finding undefined symbols pretty much proves my point! &lt;BR /&gt;&lt;BR /&gt;If the program is dependent on non-standard symbols, the build procedures should resolve them explicitly, rather than depending on a largely invisible non-standard modification to the global environment. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2008 21:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103935#M43800</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-04-16T21:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: COBOL Link Fails on Integrity</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103936#M43801</link>
      <description>Homer,&lt;BR /&gt;&lt;BR /&gt;The Cobol code in question probably uses definitions similar to:&lt;BR /&gt;&lt;BR /&gt;05  PSL$C_KERNEL PIC S9(09) COMP VALUE EXTERNAL PSL$C_KERNEL.&lt;BR /&gt;&lt;BR /&gt;One possible is to just define the values there and then. Some will suggest this is not 'clean', maybe even sloppy, but it is actually perfectly safe and typically more efficient then to make the linker/image activator get involved. &lt;BR /&gt;Just replace with:&lt;BR /&gt;&lt;BR /&gt;05  PSL$C_KERNEL PIC S9(09) COMP VALUE 0.&lt;BR /&gt;&lt;BR /&gt;The other values can be gleemed from:&lt;BR /&gt;&lt;BR /&gt;$ libr/extr=$psldef/out=tt: sys$library:starlet.mlb&lt;BR /&gt;&lt;BR /&gt;They are not going to change. Ever. Trust me :-).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The right way to approach this problem is to figure out there they are defined on your Alpha.&lt;BR /&gt;To do so just LINK with /MAP/CROSS and search for the symbols. That will lead you to the module.&lt;BR /&gt;&lt;BR /&gt;Create a similar module, in a similar place on the I64 and presto. &lt;BR /&gt;&lt;BR /&gt;John's instructions give you the details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Apr 2008 01:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103936#M43801</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-04-17T01:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: COBOL Link Fails on Integrity</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103937#M43802</link>
      <description>&lt;!--!*#--&gt;You both were very helpful.  Thank you.  I hadn't used the macro compiler before.  The possibilites are intriguing.&lt;BR /&gt;&lt;BR /&gt;I am looking forward to attending my first bootcamp.  Hope to thank you in person.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Apr 2008 12:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103937#M43802</guid>
      <dc:creator>Homer Shoemaker</dc:creator>
      <dc:date>2008-04-18T12:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: COBOL Link Fails on Integrity</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103938#M43803</link>
      <description>Thanks.</description>
      <pubDate>Fri, 18 Apr 2008 12:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cobol-link-fails-on-integrity/m-p/5103938#M43803</guid>
      <dc:creator>Homer Shoemaker</dc:creator>
      <dc:date>2008-04-18T12:28:16Z</dc:date>
    </item>
  </channel>
</rss>

