<?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: sting manipulation in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873331#M34919</link>
    <description>&lt;!--!*#--&gt;MOVE 1 TO I&lt;BR /&gt;PERFORM UNTIL I = 200&lt;BR /&gt; IF X(I) = SPACE &lt;BR /&gt; THEN&lt;BR /&gt;  MOVE X(I+1:200 - I)&lt;BR /&gt;    TO X(I:200 - I + 1)&lt;BR /&gt; END-IF&lt;BR /&gt; ADD 1 TO I&lt;BR /&gt;END-PERFORM&lt;BR /&gt;&lt;BR /&gt;Or use system calls.&lt;BR /&gt;&lt;BR /&gt;Hope it's correct because not used COBOL in 10 years.&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 03 Oct 2006 00:58:42 GMT</pubDate>
    <dc:creator>Wim Van den Wyngaert</dc:creator>
    <dc:date>2006-10-03T00:58:42Z</dc:date>
    <item>
      <title>sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873330#M34918</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  I have a alphanumeric variable say x(200) which contains a string with spaces in between. Can someone help me how to remove the spaces in the string in cobol.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sunil</description>
      <pubDate>Tue, 03 Oct 2006 00:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873330#M34918</guid>
      <dc:creator>sunny123</dc:creator>
      <dc:date>2006-10-03T00:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873331#M34919</link>
      <description>&lt;!--!*#--&gt;MOVE 1 TO I&lt;BR /&gt;PERFORM UNTIL I = 200&lt;BR /&gt; IF X(I) = SPACE &lt;BR /&gt; THEN&lt;BR /&gt;  MOVE X(I+1:200 - I)&lt;BR /&gt;    TO X(I:200 - I + 1)&lt;BR /&gt; END-IF&lt;BR /&gt; ADD 1 TO I&lt;BR /&gt;END-PERFORM&lt;BR /&gt;&lt;BR /&gt;Or use system calls.&lt;BR /&gt;&lt;BR /&gt;Hope it's correct because not used COBOL in 10 years.&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2006 00:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873331#M34919</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-10-03T00:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873332#M34920</link>
      <description>I seem to remember a VARYING clause:&lt;BR /&gt;&lt;BR /&gt;PERFORM ... VARYING I BY 1 UNTIL 200&lt;BR /&gt;&lt;BR /&gt;...but I haven't used COBOL in 30 years!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2006 02:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873332#M34920</guid>
      <dc:creator>Barry Alford</dc:creator>
      <dc:date>2006-10-03T02:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873333#M34921</link>
      <description>...or was it &lt;BR /&gt;&lt;BR /&gt;PERFORM ... VARYING I FROM 1 TO 200 BY 1&lt;BR /&gt;&lt;BR /&gt;anyhow, there are also a few full stops (aka periods) missing from the example!&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2006 02:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873333#M34921</guid>
      <dc:creator>Barry Alford</dc:creator>
      <dc:date>2006-10-03T02:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873334#M34922</link>
      <description>I would use STRING&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/6297/6297pro_031.html#string_unstring_insp_chap" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/6297/6297pro_031.html#string_unstring_insp_chap&lt;/A&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Tue, 03 Oct 2006 02:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873334#M34922</guid>
      <dc:creator>Phil.Howell</dc:creator>
      <dc:date>2006-10-03T02:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873335#M34923</link>
      <description>Phil,&lt;BR /&gt;&lt;BR /&gt;STRING ? INSPECT could do it but it replaces characters by characters of equal length. So, no go.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Oct 2006 03:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873335#M34923</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-10-03T03:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873336#M34924</link>
      <description>ok, to be more specific...&lt;BR /&gt;I would use STRING&lt;BR /&gt;with a DELIMITED BY value and a POINTER&lt;BR /&gt;Phil</description>
      <pubDate>Tue, 03 Oct 2006 03:34:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873336#M34924</guid>
      <dc:creator>Phil.Howell</dc:creator>
      <dc:date>2006-10-03T03:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873337#M34925</link>
      <description>&lt;!--!*#--&gt;I would call the BASIC RTL EDIT$ function with code 2 or 258&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;IDENTIFICATION DIVISION.&lt;BR /&gt;PROGRAM-ID.  BENCH_MOVTC.&lt;BR /&gt;DATA DIVISION.&lt;BR /&gt;WORKING-STORAGE SECTION.&lt;BR /&gt;&lt;BR /&gt;77 WS-SOURCE-NAME   PIC X(55).&lt;BR /&gt;77 WS-DEST-NAME     PIC X(55).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;01 EDIT_VAL_COMP    PIC 9(9) USAGE COMP.&lt;BR /&gt;01 EDIT_VAL_TEXT    PIC 9(3) USAGE DISPLAY.&lt;BR /&gt;&lt;BR /&gt;PROCEDURE DIVISION.&lt;BR /&gt;PGM-BEGIN.&lt;BR /&gt;        DISPLAY "Edit: " NO ADVANCING.&lt;BR /&gt;        ACCEPT EDIT_VAL_TEXT.&lt;BR /&gt;        MOVE EDIT_VAL_TEXT TO EDIT_VAL_COMP.&lt;BR /&gt;        DISPLAY "Name: " NO ADVANCING&lt;BR /&gt;        ACCEPT WS-SOURCE-NAME&lt;BR /&gt;&lt;BR /&gt;        CALL 'DBASIC$EDIT' USING BY DESCRIPTOR WS-DEST-NAME, WS-SOURCE-NAME,&lt;BR /&gt;                BY VALUE EDIT_VAL_COMP.&lt;BR /&gt;&lt;BR /&gt;        Display ws-dest-name.&lt;BR /&gt;&lt;BR /&gt;        stop run.&lt;BR /&gt;&lt;BR /&gt;Edit functions available:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ HELP/LIBRARY=BASICHELP edit% synt&lt;BR /&gt;&lt;BR /&gt;EDIT$&lt;BR /&gt;&lt;BR /&gt;  Syntax&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         str-var = EDIT$(str-exp, int-exp)&lt;BR /&gt;&lt;BR /&gt;     Values   Effect&lt;BR /&gt;&lt;BR /&gt;     1%       Trim parity bits&lt;BR /&gt;     2%       Discard all spaces and tabs&lt;BR /&gt;     4%       Discard characters: CR, LF, FF, ESC, RUBOUT, and NULL&lt;BR /&gt;     8%       Discard leading spaces and tabs&lt;BR /&gt;     16%      Reduce spaces and tabs to one space&lt;BR /&gt;     32%      Convert lowercase to uppercase&lt;BR /&gt;     64%      Convert [ to ( and ] to )&lt;BR /&gt;     128%     Discard trailing spaces and tabs&lt;BR /&gt;     256%     Do not alter characters inside quotes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2006 08:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873337#M34925</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-10-03T08:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873338#M34926</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;    Thank you very much for all your help and valuable suggestions which made my job easy.&lt;BR /&gt;Thanks again</description>
      <pubDate>Thu, 05 Oct 2006 01:57:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873338#M34926</guid>
      <dc:creator>sunny123</dc:creator>
      <dc:date>2006-10-05T01:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: sting manipulation</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873339#M34927</link>
      <description>Sunil,&lt;BR /&gt;&lt;BR /&gt;perhaps you could read&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;to find out hpw to express your thanks.&lt;BR /&gt;&lt;BR /&gt;(and zero points for this please)&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 05 Oct 2006 12:59:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sting-manipulation/m-p/3873339#M34927</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-10-05T12:59:15Z</dc:date>
    </item>
  </channel>
</rss>

