0 pts.
 TAB in Physical File
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?

Software/Hardware used:
ASKED: February 20, 2006  2:56 AM
UPDATED: November 30, 2009  4:12 AM

Answer Wiki:
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
Last Wiki Answer Submitted:  November 30, 2009  4:12 am  by  Maverick64   0 pts.
All Answer Wiki Contributors:  Maverick64   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

write one char with value x’05′. It will be translated to x’09′ when copied to IFS or mailed

 0 pts.