Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you create a carriage return in a database field using RPG 1

Status
Not open for further replies.

JFawcett

Programmer
Joined
Dec 27, 2002
Messages
4
Location
US
I have a 2000 character field in an AS400 database that is updated by a PROGRESS program. The field contains a carriage return (see below between the period and the asterisk). I need to create the same carriage return using RPG. I'm assuming the HEX value is "0A" but I don't know how to imbed that where I need it in the field.

invoices. ¬ **All
489A9888A440455C994
095569352B0A0CC1330
 

Just use x'hex value'. E.g.

eval MyFld = x'0A'
 
Thank you that worked flawlessly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top