Focal Point
[Solved] TX field issue

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5787021586

January 05, 2017, 03:48 PM
Fernando
[Solved] TX field issue
Hi All, I have this metadata

  
FILENAME=GOJS, SUFFIX=SQLORA  , $
  SEGMENT=GOJS, SEGTYPE=S0, $
    FIELDNAME=KEY, ALIAS=KEY, USAGE=P13, ACTUAL=P7, $
    FIELDNAME=JSON, ALIAS=JSON, USAGE=TX1, ACTUAL=TX,
      MISSING=ON, $


this code

TABLE FILE GOJS
PRINT
 JSON
 WHERE KEY EQ 1
ON TABLE PCHOLD FORMAT ALPHA
END
-RUN


and this data

Key= 1
JSON=
{ "class": "go.GraphLinksModel",  "modelData": ...


I am using TX1 but it not showing records with the spaces. In other words it shows:

{
"
c
l
a
...


and I want

{
"
 
c
l
a
...


I have tried other version of TX for example

    FIELDNAME=JSON, ALIAS=JSON, USAGE=TX1, ACTUAL=TX,
      MISSING=ON, $
[CODE]

produces:

[CODE]
{    
"clas
s":  
"go.G


You will see extra space, as it pads to fill 5 characters per line.

if it included the one space that I want and not the extra ones, I would be ok.

Any ideas on how to get the spaces without the padding?

Fernando

This message has been edited. Last edited by: Fernando,


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
January 09, 2017, 07:10 AM
Frans
Did zou try using PARAG?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
January 09, 2017, 02:38 PM
Fernando
I have not tried that. Looking at the doc I see that it helps split lines. That is not quite what I want.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
January 10, 2017, 08:37 AM
Frans
Then what is it that zou want? In your example it looks like you want to split the string to have a row per charachter.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
January 10, 2017, 12:40 PM
Fernando
I have adjusted my metadata to use A32000. This solves my issue.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03