Skip to Content
author's profile photo Former Member
Former Member

Moving internal table work area data to string

Hi, I am running a program with unicode enable.I am moving data from work area to string where i am getting a error like String & work area are not mutually convertable in Uni code program.

Can any one help me how to resolve this problem.

Thanks & Regards,

Pratap.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2008 at 09:33 AM

    Hi Pratap,

    As far as I know, this cannot be done if your program is unicode enabled.

    You will have to find a work around by using another work area.

    If your requirement is to necessarily move the work area into a string and if the work area is not very large,

    you might consider concatenating individual fields of the work area into the string.

    Of course that is possible only if the work area has all character fields.

    regards,

    Sameer

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 15, 2008 at 09:49 AM

    Hi Pratap kumar,

    sorry, need to do some redesign:

    You could poiibly concatenate the components of the structure into a string - if they are all character-like. And you will loose leading and trailing spaces.

    Non-character-componets must be converted (WRITE TO) into character-like fields.

    If you need the exact position in your string, you have to place all values at calculatzed offset in a (big enough) character field like CHAR1024.

    Altogether it might be easier to re-think and re-build according to results required. As you did not mention where you have this question, I have no special idea on how to solve.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.