<?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: An odd but highly complex question in Operating System - NonStop OS</title>
    <link>https://community.hpe.com/t5/operating-system-nonstop-os/an-odd-but-highly-complex-question/m-p/6788768#M219</link>
    <description>&lt;P&gt;I haven't used COBOL in decades.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems you need to dynamically select fields based on names.&amp;nbsp; I don't think there is any easy way to do this except with a big EVALUATE verb with the list of every field you might want to change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your problem will be even harder since DE-ELEMENT-1 &amp;amp; DE-ELEMENT-3 have different PICs.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Sep 2015 12:49:38 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2015-09-26T12:49:38Z</dc:date>
    <item>
      <title>An odd but highly complex question</title>
      <link>https://community.hpe.com/t5/operating-system-nonstop-os/an-odd-but-highly-complex-question/m-p/6787795#M218</link>
      <description>&lt;P&gt;I am working in a COBOL shop and I am wondering if it is possible to extract a field name from a string (PIC X(30)) variable and be able to then access that data element in memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we are doing is attempting to create a process that will read through a database that contains field names in a PIC X(30) field. &amp;nbsp;Then using that field name access that data element in the program. &amp;nbsp;For example...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Elements in Working Storage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;01 DATA.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 05 DE-ELEMENT-1 &amp;nbsp; &amp;nbsp;PIC X(02).&lt;/P&gt;&lt;P&gt;&amp;nbsp; 05 DE-ELEMENT-2 &amp;nbsp; &amp;nbsp;PIC 9(04).&lt;/P&gt;&lt;P&gt;&amp;nbsp; 05 DE-ELEMENT-3 &amp;nbsp; &amp;nbsp;PIC 9(06)V9(02).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An external table holds a single field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;01 PROCESSING-FIELD &amp;nbsp; &amp;nbsp;PIC X(30).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And assume it holds these 2 rows as text strings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DE-ELEMENT-1&lt;/P&gt;&lt;P&gt;DE-ELEMENT-3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am looking for is a way to process through the values in the external table and perform tasks on the fields listed in there. &amp;nbsp;The program we are looking at is attempting to log changes to fields but only specific fields are being checked. &amp;nbsp;So in this case we woudl only process on DE-ELEMENT-1 and DE-ELEMENT-3 and not DE-ELEMENT-2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are attempting to make this a table driven check because we have had to change the list of fields many times already and it requires a code promotion each time.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 19:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-nonstop-os/an-odd-but-highly-complex-question/m-p/6787795#M218</guid>
      <dc:creator>ChrisMDorn</dc:creator>
      <dc:date>2015-09-23T19:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: An odd but highly complex question</title>
      <link>https://community.hpe.com/t5/operating-system-nonstop-os/an-odd-but-highly-complex-question/m-p/6788768#M219</link>
      <description>&lt;P&gt;I haven't used COBOL in decades.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems you need to dynamically select fields based on names.&amp;nbsp; I don't think there is any easy way to do this except with a big EVALUATE verb with the list of every field you might want to change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your problem will be even harder since DE-ELEMENT-1 &amp;amp; DE-ELEMENT-3 have different PICs.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 12:49:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-nonstop-os/an-odd-but-highly-complex-question/m-p/6788768#M219</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-09-26T12:49:38Z</dc:date>
    </item>
  </channel>
</rss>

