NEED TO REMOVE SPACE BEFORE THE TAB DELIMITER

THE CODE ATTACHED INSERTS THE TAB CHARACTER BEWTEEN THE FIELDS BUT IT IS PRECEEDED BY A SPACE (IT ACTUALLY TURNS OUT TO BE X"0009".
HOW DO I ELIMINATE THE SPACE?
NOENIMIESAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

garypfirstechCommented:
You're including FIELD-1 by size.  It seems that perhaps the non-null characters in FIELD-1 are one character less than the actual size of FIELD-1 so the trailing character in FIELD-1 is X'00'.  Try changing DELIMITED BY SIZE to DELIMITED BY X'00' and see if that corrects your issue.
0
Bill PrewCommented:
How are field-1 and field-2 defined?

~bp
0
NOENIMIESAuthor Commented:
Defined as PIC X.
I also tried to redefine as s9 display, neither worked
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

NOENIMIESAuthor Commented:
Sorry I misunderstood, the fields in the string are PIC X or literals
0
NOENIMIESAuthor Commented:
01  HEX-09-CREATE.
    02  FILLER        VALUE +09          PIC S9(02) COMP.
01  HEX-09X REDEFINES HEX-09-CREATE.
    02  HEX-09                           PIC X(01).
    02  FILLERXX                         PIC X(01).

Put the above code in Working Storage, then in the Procedure Division simply
                  MOVE HEX-09                  TO SOME-FIELD.

I found the abov eon your WEBSITE but it doesn't work either....
0
sjklein42Commented:
On Line 4 you spelled SIZE wrong.
0
NOENIMIESAuthor Commented:
that was pseudo code to make the illustration,  the actual code has no compiler errors
0
garypfirstechCommented:
What is the exact entry in the data division for field-1 (including its picture) and what value does field-1 have at the start of the STRING statement?
0
tliottaCommented:
...the fields in the string are PIC X or literals

I don't quite understand that statement. If it's a "field", then it can't also be a "literal". Which is it?

The actual STRING statement and the data definitions are needed. Pseudo-code isn't useful here.

What platform are you compiling on? What compiler are you running?

Tom
0
NOENIMIESAuthor Commented:
cobol32 on windows/xp
0
NOENIMIESAuthor Commented:
micro focus..not fujitsu
0
MikeOM_DBACommented:

Did you try it this way?:

01  HEX-09-CREATE.
    02  FILLER        VALUE +09          PIC S9(02) COMP.
01  HEX-09X REDEFINES HEX-09-CREATE.
    02  FILLERXX                         PIC X(01).
    02  HEX-09                           PIC X(01).

Open in new window

0
James0628Commented:
FWIW, I don't see any code attached to the first post, but it seems like others do, so maybe it's just me somehow.

 James
0
tliottaCommented:
I don't see any code attached to the first post...

I see a data definition; but so far there is no code to show what is being done, as far as I can see. That would explain some confusion that I have. I simply can't see any attached code.

Tom
0
tliottaCommented:
BTW, note that X"0009" is a valid (Unicode) value for a (horizontal) TAB character.

Tom
0
NOENIMIESAuthor Commented:
This issue has been resolved, thank you very much.  Nothing is wrong with the coding. It's the cobol run time switch.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DhaestCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mainframe Languages

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.