Opcode remove space in RPG/400 (RPGIII)

45 pts.
Tags:
AS/400
RPG READE Opcode
RPG/400
in RPG IV --> Trim

in RPG III --> ?

Ex 

var1 length=10  var2 length=10

var1 = 'AAA'

var2 = 'BBB'

var1  cat  var2  ---> 'AAA       BBB       '   

i want --> 'AAABBB'

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 2  Replies

 
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.
  • Opcode remove space in RPG/400 (RPGIII) | CyberTechBlog.Com
    [...] this article: Opcode remove space in RPG/400 (RPGIII) AKPC_IDS += "49713,";Popularity: unranked [...]
    0 pointsBadges:
    report
  • philpl1jb
    C STR1 CAT STR2:0 TEMP P The :0 indcates on factor 2 makes this act like TEMP = %rtrim(STR1) + STR2 It doesn't use the trailing spaces on STR1. It Cats STR2 on, leading spaced and all. The P will fill out the result with spaces. http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.langref.doc/evferlsh269.htm Phil
    54,090 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.

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

Following

Share this item with your network: