<?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: Pascal compilation in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081792#M38853</link>
    <description>According to the help, you need a so-called environment format for INHERIT to work.&lt;BR /&gt;This can be created with PASCAL/NOOBJECT/ENVIRONMENT.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PASCAL&lt;BR /&gt;&lt;BR /&gt;  Attributes&lt;BR /&gt;&lt;BR /&gt;    INHERIT&lt;BR /&gt;&lt;BR /&gt;       The INHERIT attribute indicates the environment file or files to&lt;BR /&gt;       be  inherited  by  a  compilation  unit.   The environment files&lt;BR /&gt;       specified by  the  INHERIT  attribute  must  already  have  been&lt;BR /&gt;       created   in   compilation  units  (by  either  the  ENVIRONMENT&lt;BR /&gt;       attribute or a compilation switch).&lt;BR /&gt;&lt;BR /&gt;       Syntax:&lt;BR /&gt;&lt;BR /&gt;          INHERIT( {name-string},...  )&lt;BR /&gt;&lt;BR /&gt;       The compilation unit inherits  one  or  more  environment  files&lt;BR /&gt;       named  by  the  file  specifications  in  the name strings.  The&lt;BR /&gt;       default file type for an inherited environment file is .PEN.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
    <pubDate>Wed, 28 Nov 2007 06:48:51 GMT</pubDate>
    <dc:creator>Karl Rohwedder</dc:creator>
    <dc:date>2007-11-28T06:48:51Z</dc:date>
    <item>
      <title>Pascal compilation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081791#M38852</link>
      <description>I am migtating old Pascal code from VMS 5.5 to VMS 8.2 and get the following error messages.&lt;BR /&gt;&lt;BR /&gt;PASCAL /DEBUG /NOOPT/NODIA  xxx.pas&lt;BR /&gt;&lt;BR /&gt;[INHERIT ('sys$library:decw$motif',&lt;BR /&gt;...........^&lt;BR /&gt;%PASCAL-F-FNF, file not found&lt;BR /&gt;at line number 1 in file xxx.pas&lt;BR /&gt;&lt;BR /&gt;PASCAL /DEBUG /NOOPT/NODIA  xxx2.pas&lt;BR /&gt;&lt;BR /&gt;[INHERIT ('sys$library:decw$motif.pas',&lt;BR /&gt;...........^&lt;BR /&gt;%PASCAL-F-IVENVIRON, Environment sys$library:decw$motif.pas has illegal format, source analysis terminated&lt;BR /&gt;at line number 1 in file xxx2.pas&lt;BR /&gt;&lt;BR /&gt;The file sys$library:decw$motif.pas exists and was created in 1993 according to the comments.&lt;BR /&gt;&lt;BR /&gt;It appears that Environment files now have different formats. How do I procede.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 28 Nov 2007 06:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081791#M38852</guid>
      <dc:creator>Mark Battle</dc:creator>
      <dc:date>2007-11-28T06:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pascal compilation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081792#M38853</link>
      <description>According to the help, you need a so-called environment format for INHERIT to work.&lt;BR /&gt;This can be created with PASCAL/NOOBJECT/ENVIRONMENT.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PASCAL&lt;BR /&gt;&lt;BR /&gt;  Attributes&lt;BR /&gt;&lt;BR /&gt;    INHERIT&lt;BR /&gt;&lt;BR /&gt;       The INHERIT attribute indicates the environment file or files to&lt;BR /&gt;       be  inherited  by  a  compilation  unit.   The environment files&lt;BR /&gt;       specified by  the  INHERIT  attribute  must  already  have  been&lt;BR /&gt;       created   in   compilation  units  (by  either  the  ENVIRONMENT&lt;BR /&gt;       attribute or a compilation switch).&lt;BR /&gt;&lt;BR /&gt;       Syntax:&lt;BR /&gt;&lt;BR /&gt;          INHERIT( {name-string},...  )&lt;BR /&gt;&lt;BR /&gt;       The compilation unit inherits  one  or  more  environment  files&lt;BR /&gt;       named  by  the  file  specifications  in  the name strings.  The&lt;BR /&gt;       default file type for an inherited environment file is .PEN.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Wed, 28 Nov 2007 06:48:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081792#M38853</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2007-11-28T06:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pascal compilation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081793#M38854</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;If I recall correctly, I ran into the same problem some years back. Apparently, when installing the PASCAL compiler, (some of) the necessary environment files are not generated from the source files.&lt;BR /&gt;As Karl hinted, you can brew your own by:&lt;BR /&gt;PASCAL/NOOBJECT/ENVIRONMENT sys$library:decw$motif.pas&lt;BR /&gt;This should give you a valid .PEN file that you can put in SYS$COMMON:[SYSLIB].&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)</description>
      <pubDate>Wed, 28 Nov 2007 08:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081793#M38854</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2007-11-28T08:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pascal compilation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081794#M38855</link>
      <description>The DECW$MOTIF.PAS/PEN files are not part of the Pascal kit.  The DECW$MOTIF.PAS file is provied by DECwindows.  Unfortunately, you have to compile it yourself into a PEN file.&lt;BR /&gt;&lt;BR /&gt;$ pascal /noobj/env=sys$common:[syslib] sys$library:decw$motif.pas&lt;BR /&gt;&lt;BR /&gt;BTW, the INHERIT attribute does not process .PAS source files, but only precompiled PEN files created with the /ENV qualifier.  The formats for PEN files (at least on the same architecture) are upwards compatible.  Newer compilers will always be able to handle old PEN files.  As a point of trivia, I haven't changed the format since 1996.</description>
      <pubDate>Wed, 28 Nov 2007 09:42:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081794#M38855</guid>
      <dc:creator>John Reagan</dc:creator>
      <dc:date>2007-11-28T09:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pascal compilation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081795#M38856</link>
      <description>Solution as described. Many thanks</description>
      <pubDate>Wed, 28 Nov 2007 10:15:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/pascal-compilation/m-p/5081795#M38856</guid>
      <dc:creator>Mark Battle</dc:creator>
      <dc:date>2007-11-28T10:15:10Z</dc:date>
    </item>
  </channel>
</rss>

