<?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: Decforms compilation output - mismatch with the Decform source file line numbers. in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116361#M37191</link>
    <description>&lt;P&gt;I don't think there is a /LIST quliflier there.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2013 03:58:56 GMT</pubDate>
    <dc:creator>Notilus007</dc:creator>
    <dc:date>2013-06-27T03:58:56Z</dc:date>
    <item>
      <title>Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116051#M37189</link>
      <description>&lt;P&gt;When I compile a decform (IFDL) source file, I get a compilation output with error line numbers that do not match the line numbers in the source file itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know a way to tell the compiler to indicate the corresponding errors line number from the source file itself?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 21:02:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116051#M37189</guid>
      <dc:creator>Notilus007</dc:creator>
      <dc:date>2013-06-26T21:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116305#M37190</link>
      <description />
      <pubDate>Thu, 27 Jun 2013 03:22:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116305#M37190</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-06-27T03:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116361#M37191</link>
      <description>&lt;P&gt;I don't think there is a /LIST quliflier there.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 03:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116361#M37191</guid>
      <dc:creator>Notilus007</dc:creator>
      <dc:date>2013-06-27T03:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116435#M37192</link>
      <description />
      <pubDate>Thu, 27 Jun 2013 04:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6116435#M37192</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-06-27T04:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117577#M37193</link>
      <description>&lt;P&gt;The actual compilation command that I use is :&lt;/P&gt;&lt;P&gt;$FORMS TRANSLATE file_name.IFDL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The compilation output that I get is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pan el ICA_TRT779_data_PANEL&lt;/P&gt;&lt;P&gt;%FORMS-E-SYNTAXERR, syntax error; an expected keyword, name or literal is missing or misspelled.&lt;/P&gt;&lt;P&gt;-FORMS-I-EXPECTED, one of the following was expected: ALL, WAIT, ICON, FIELD, GROUP, PANEL, BUTTON, CORRESPONDING.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pan el ICA_TRT779_data_PANEL&lt;/P&gt;&lt;P&gt;%FORMS-E-SYNTAXERR, syntax error; an expected keyword, name or literal is missing or misspelled.&lt;/P&gt;&lt;P&gt;-FORMS-I-ONEXPECTED, the following was expected: ON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3163&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy&lt;/P&gt;&lt;P&gt;%FORMS-E-SYNTAXERR, syntax error; an expected keyword, name or literal is missing or misspelled.&lt;/P&gt;&lt;P&gt;-FORMS-I-EXPECTED, one of the following was expected: APPLY, HELP, PANEL, MESSAGE, END.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3165&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Copy&lt;/P&gt;&lt;P&gt;%FORMS-E-SYNTAXERR, syntax error; an expected keyword, name or literal is missing or misspelled.&lt;/P&gt;&lt;P&gt;-FORMS-I-ONEXPECTED, the following was expected: LAYOUT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3171&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy&lt;/P&gt;&lt;P&gt;%FORMS-E-SYNTAXERR, syntax error; an expected keyword, name or literal is missing or misspelled.&lt;/P&gt;&lt;P&gt;-FORMS-I-ONEXPECTED, the following was expected: _/End_of_Line/_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3173&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Copy&lt;/P&gt;&lt;P&gt;%FORMS-E-SYNTAXERR, syntax error; an expected keyword, name or literal is missing or misspelled.&lt;/P&gt;&lt;P&gt;-FORMS-I-ONEXPECTED, the following was expected: FORM&lt;/P&gt;&lt;P&gt;%FORMS-W-NONCOMMENT, non comment text after END FORM has been ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the line numbers do not match the line numbers on the source file (file_name.IFDL)&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 17:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117577#M37193</guid>
      <dc:creator>Notilus007</dc:creator>
      <dc:date>2013-06-27T17:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117601#M37194</link>
      <description />
      <pubDate>Thu, 27 Jun 2013 18:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117601#M37194</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-06-27T18:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117603#M37195</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmmm, the user provided names reported in the error messages appear relatively unique.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply search for each occurance?&lt;/P&gt;&lt;P&gt;Are the line number in 'range' at all?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there copy/include files involved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can create a DCL/Awk/Perl script to execute the includes inline 'blowing up' the source and compile the result or just use the indicate error line numbers as pointers into that exploded result?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe the line numbers will match that way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fwiw,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hein&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 18:13:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117603#M37195</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2013-06-27T18:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117613#M37196</link>
      <description>There are copy/include files involved, but how can I have the output with error line numbers matching those in the original source file and not the LIST file ?&lt;BR /&gt;Somehow it works fine when I compile HP Cobol files.</description>
      <pubDate>Thu, 27 Jun 2013 18:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117613#M37196</guid>
      <dc:creator>Notilus007</dc:creator>
      <dc:date>2013-06-27T18:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117631#M37197</link>
      <description>&lt;P&gt;I do not code in DECForms, but I appears to me that&amp;nbsp;the compiler&amp;nbsp;is telling you what the error is;&amp;nbsp;the error appears to me to be&amp;nbsp;an imbedded space in the verb "PAN EL" &amp;nbsp;in your defintion. OpenVMS does not like embedded spaces in most commands and languages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other error is that the command COPY is&amp;nbsp;not recognized by the&amp;nbsp;DECforms compiler, is this the correct syntax and is the copy is the correct progression of the form definition ?&amp;nbsp;&amp;nbsp; If it is, then it is just a secondary error caused because the PANEL verb failed from above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please review your syntax.&amp;nbsp; Just curious,&amp;nbsp;did you use some kind of automated program to generate this code in the first place&amp;nbsp;? This could explan the gotchas here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Line numbering in all OpenVMS langages and compilers&amp;nbsp;is a bit complicated&amp;nbsp;because&amp;nbsp;all the&amp;nbsp;included data, functions and library definitions are included in the source at compile time and are&amp;nbsp;added to&amp;nbsp;line counts. These additional line are&amp;nbsp;accounted for in the compliation and can extensive.&amp;nbsp; There may be a&amp;nbsp;way to do this but if the error is evident do you&amp;nbsp;really need the&amp;nbsp;line number to find the error?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 18:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117631#M37197</guid>
      <dc:creator>Tom Wetty</dc:creator>
      <dc:date>2013-06-27T18:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117651#M37198</link>
      <description />
      <pubDate>Thu, 27 Jun 2013 19:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117651#M37198</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-06-27T19:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117669#M37199</link>
      <description>I have read section C.3 in "HP DECforms Guide to Commands and Utilities" and it seems that only with LSE I can do the correlation between the compilation errors and the line number in the IFDL source file. How can I do it without using LSE ?</description>
      <pubDate>Thu, 27 Jun 2013 19:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117669#M37199</guid>
      <dc:creator>Notilus007</dc:creator>
      <dc:date>2013-06-27T19:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117691#M37200</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this specific case, as Tom indicates, you should just SEARCH the source for "PA NEL" and fix that!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For the general case is is indeed tricky as DECforms counts the lines from FILE COPY to the listing.&lt;/P&gt;&lt;P&gt;COPY FROM DICTIONARY poses no problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a little example removing a few lines from a working IFDL, put it into a copy file (tmp.tmp) and broke a line further down just like the example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The LISTING makes clear how the COPY impacts the lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   658  COPY
   659     "tmp.tmp"
   660  END COPY
   661C /* RECORD LIST DEefinitions */
   662C
   663C     RECORD LIST res_cust_num
   664C         vr_control_wksp
   665C         vr_reservations_wksp
   666C         vr_customers_wksp
   667C     END LIST
   668C
   669C
   670
   671      RECORD LIST cust_res_list&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See how the reported line number moved:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ sea/num tmp.ifdl "pa nel"
  3707                      PA NEL confirm_panel
$ form tran tmp.ifdl

 3716                          PA NEL confirm_panel
%FORMS-E-SYNTAXERR, syntax error; an expected keyword, name or literal is missing or misspelled.
-FORMS-I-EXPECTED, one of the following was expected: ALL, WAIT, ICON, FIELD, GROUP, PANEL, BUTTON, CORRESPONDING.

 3716                          PA NEL confirm_panel
%FORMS-E-SYNTAXERR, syntax error; an expected keyword, name or literal is missing or misspelled.
-FORMS-I-ONEXPECTED, the following was expected: ON&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TO map them back, you could use a script as I suggested.&lt;/P&gt;&lt;P&gt;I hacked one up in DCL. Crude... &amp;nbsp;Minimal parsing... but it works for me.&lt;/P&gt;&lt;P&gt;If you want to use it, then you need to verify the SYNTAX of your COPY / END COPY usage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enjoy!&lt;/P&gt;&lt;P&gt;HEin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ @IFDL_COPY.COM tmp.ifdl 3716
538/538 Copy tmp.tmp
3716 lines.3707 Lines in IFDL, 1 Copy Files
$
$ type IFDL_COPY.COM
$ IF P2.EQS."" THEN EXIT 16
$ line = p2
$ IF F$TYPE(line).NES."INTEGER" THEN EXIT 16
$ CLOSE/NOLOG ifdl
$ OPEN/READ/ERROR=ooops ifdl 'P1
$ copy_file = 0
$ ifdl_line = 0
$ list_line = 0
$ quote = """"
$ space = " "
$main_loop:
$ read/end=done ifdl rec
$ ifdl_line = ifdl_line + 1
$ list_line = list_line + 1
$ if list_line.EQ.line THEN GOTO done
$ x = f$edit(rec,"TRIM,COMPRESS,UPCASE,UNCOMMENT")
$ IF x.NES."COPY" THEN GOTO main_loop
$ read/end=done ifdl rec
$ copy_file_name = f$edit(rec,"TRIM,COMPRESS,UPCASE,UNCOMMENT") - quote - quote
$ IF F$ELEM(1,space,copy_file_name).NES.space THEN GOTO main_loop
$ WRITE SYS$OUTPUT list_line, "/", ifdl_line, " Copy ", copy_file_name
$ CLOSE/NOLOG copy
$ OPEN/READ/ERROR=ooops copy 'copy_file_name
$ copy_file = copy_file + 1
$ copy_loop:
$   READ/END=main_loop/ERROR=ooops copy rec  ! Just leave open
$   list_line = list_line + 1
$   GOTO copy_loop
$
$done:
$ write sys$output list_line, " lines.", ifdl_line, " Lines in IFDL, ", copy_file, " Copy Files"
$ close/nolog ifdl
$ close/nolog copy
$ooops:
$ EXIT '$STATUS&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 20:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6117691#M37200</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2013-06-27T20:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Decforms compilation output - mismatch with the Decform source file line numbers.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6126641#M37201</link>
      <description>&lt;P&gt;Thanks a lot Hein, we have tried your script and this solution of yours works great for us.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2013 22:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/decforms-compilation-output-mismatch-with-the-decform-source/m-p/6126641#M37201</guid>
      <dc:creator>Notilus007</dc:creator>
      <dc:date>2013-07-06T22:23:30Z</dc:date>
    </item>
  </channel>
</rss>

