|
If you're using fixed-format, it would be the MOVE opcode. If you not using fixed-format, it would be: Eval X = %Char(Y) If you want X to be zero-filled, it would be: evalR X = %editC(Y : 'X') -Bob Cozzi www.RPGxTools.com RPG xTools - Enjoy programming again. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jim Franz Sent: Monday, December 05, 2005 8:37 AM To: RPG400-L@xxxxxxxxxxxx Subject: rpg equiv of clp %bin What is the RPGIV equivalent of the clp dcl var(&X) type(*char) len(3) dcl var(&Y) type(*char) len(2) chgvar var(&X) value(%bin(&Y)) i have a clp exit pgm for telnet and need to change to rpg for addtl requirements. jim franz
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.