SIMPLE XLATE CONCAT/COPY USING TEMP VARIABLES

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf SIMPLE XLATE CONCAT/COPY USING TEMP VARIABLES

Viewing 4 reply threads
  • Author
    Replies
    • #79894
      Carson Nguyen
      Participant

        Tom Parsons wrote:

        Hello,

        Simple XLATE on CL 5.4P_REV1 WINDOWS.

        Copying literal text data to temp variable.

        COPY

      • #79895
        Jim Kosloskey
        Participant

          Tom,

          I am using CL 6.0 and cannot reproduce your issue.

          So maybe this is a 5.4 thing.

          However, in the CONCAT how are you specifying the spaces – via a space after each literal or via the separator character in the CONCAT Action (and then are you specifying x20 or an actual space)?

          It should not make any difference.

          I would have expected the xlateOutVals from the CONCAT to show {A B C D E} (note the curly braces). So unless you have some Tcl modifying the xlateOutVals display I think that might be the issue.

          If indeed the curly braces are missing try adding them via the CONCAT. The problem is if this is a 5.4 issue, when it is fixed (when you go to a later release) adding the {} in the CONCAT will stop working the way you want and you will need to remember to change.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #79896
          Tom Parsons
          Participant

            Hi Carson and Jim,

            I attached the original XLATE module.

            I did not have a SPACE char between the CONCAT literals.

            But per your suggestion Jim, I added =x20 between the items and the result was what is expected and solves my problem !

            Thanks,

            Tom

            Before/original (without =x20 between CONCAT items)-


            a


            xlateOutVals


            b


            xlateOutVals


            concat


            xlateInVals


            concat


            xlateOutVals


            copy


            xlateInVals


            copy


            xlateOutVals

            After (with =x20 between CONCAT items)-


            a


            xlateOutVals


            b


            xlateOutVals


            concat


            xlateInVals


            concat


            xlateOutVals


            copy


            xlateInVals


            copy


            xlateOutVals

            []

          • #79897
            Jim Kosloskey
            Participant

              Tom,

              Another way is to use the Separator field in the CONCAT Action (it is under the Error:  pulldown to the right of the CONCAT middle panel).

              I like to place x20 instead of entering a space there so it is obvious I want a space between each element of the Source.

              By using the Separator you don’t need to enter a space or x20 on each element of the Source.

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

            • #79898
              Tom Parsons
              Participant

                Jim,

                Good idea!

                Thank you.

                At least in my version of CL if I add =x20 to every other line on the CONCAT input side, it changes it to “= “, which makes it non-obvious.

            Viewing 4 reply threads
            • The forum ‘Cloverleaf’ is closed to new topics and replies.