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.
Bill PrewIT / Software Engineering ConsultantCommented:
How are field-1 and field-2 defined?

~bp
NOENIMIESAuthor Commented:
Defined as PIC X.
I also tried to redefine as s9 display, neither worked
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

NOENIMIESAuthor Commented:
Sorry I misunderstood, the fields in the string are PIC X or literals
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....
sjklein42Commented:
On Line 4 you spelled SIZE wrong.
NOENIMIESAuthor Commented:
that was pseudo code to make the illustration,  the actual code has no compiler errors
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?
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
NOENIMIESAuthor Commented:
cobol32 on windows/xp
NOENIMIESAuthor Commented:
micro focus..not fujitsu
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

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
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
tliottaCommented:
BTW, note that X"0009" is a valid (Unicode) value for a (horizontal) TAB character.

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

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
Dirk HaestProject managerCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
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.