View previous topic :: View next topic
|
Author |
Message |
ScottUrban
New User
Joined: 23 Apr 2007 Posts: 50 Location: Jefferson City, Mo
|
|
|
|
I have 4 occurrences of 72 bytes that are text data. the first occurrence only uses 69 and has 3 spaces at the end.
Example of what I am stringing:
field 1
FAILS WHEN THE BILLING PROVIDER NUMBER IS INAPPROPRIATE FOR THE CLAIM << has three trailing spaces
field 2 TYPE. << the end of the sentence
field 3 and field 4 are blank
I want to string the two together but have only one space between.
My string styatement is below
Code: |
STRING EXCI-EXCEP-LONG-DESC(1) DELIMITED BY ' '
' ' DELIMITED BY SIZE
EXCI-EXCEP-LONG-DESC(2) DELIMITED BY ' '
' ' DELIMITED BY SIZE
EXCI-EXCEP-LONG-DESC(3) DELIMITED BY ' '
' ' DELIMITED BY SIZE
EXCI-EXCEP-LONG-DESC(4) DELIMITED BY ' '
INTO D-SR250-LONG-DS-TEXT |
My result comes out as just the first word "FAILS" from string one with one space between "TYPE".
FAILS TYPE. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
try delimiting the occurances by two spaces
|
|
Back to top |
|
|
ScottUrban
New User
Joined: 23 Apr 2007 Posts: 50 Location: Jefferson City, Mo
|
|
|
|
You are the Man! thanks that worked! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
great! glad it worked; got one right this week! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
A blind squirrel finds an acorn once in a while. . . |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
A broken clock is right twice a day. . . |
|
Back to top |
|
|
|