Skip to main content

XML filename truncated at the first space sign

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

The output filename for XML should be "C:\\Files\\My File\\DATA.XML"

However, after the program ran without any error a file "C:\\Files\\My"

has been generated. Obviously the SPACE is truncating the name.  

           SELECT  XML-STREAM  ASSIGN

           "C:\\Files\\My File\\DATA.XML"

                         ORGANIZATION  IS  XML

                         FILE STATUS   IS  XMLSTAT.

       XD          XML-STREAM.

       01          xmls-group identified by "data".

       ...

Resolution:

Please specify the filename as:   '"C:\\Files\\My File\\DATA.XML"'

SingleQuote  DoubleQuote  C:\\Files\\My File\\DATA.XML DoubleQuote  SingleQuote  

Old KB# 4432