TAB in Physical File

0 pts.
Tags:
RPG
If I have a file which is created with no DDS (only Record length), how can I insert a tab in this field when I write record into the file using RPG?
ASKED: February 20, 2006  2:56 AM
UPDATED: November 30, 2009  4:12 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Use a hex 05.

===================================================

You put tabs into records the same way you put any character anywhere — use EVAL. Just like every other value, you specify what value you want along with where you want the value to go. How would you put the letter ‘A’ in the file? Do the same thing with a tab; it’s just another value.

All of that might be pointless though. Why put tabs into physical files when there are far better things to do with tabs? Put them into streamfiles where they’ll actually be useful.

Tom

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • JPLamontre
    write one char with value x'05'. It will be translated to x'09' when copied to IFS or mailed
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following