Hi friends,
Can you give the solution for the below mention simple
code.and explain.what is output
D CHR1 S 4A INZ('PEN')
D CHR2 S 10A INZ('MYGET')
D CHR3 S 8A INZ('GOOD')
D CHR4 S 22A INZ
C MOVEL CHR1 CHR4
C MOVE CHR2 CHR4
C EVAL CHR4=CHR3
C MOVE CHR1 CHR4
Answer Posted / rashmi
C MOVEL CHR1 CHR4
=> CHR4 = 'PEN '
C MOVE CHR2 CHR4
=> CHR4 = 'PEN MYGET'
C EVAL CHR4=CHR3
=> CHR4 = 'GOOD '
C MOVE CHR1 CHR4
=> CHR4 = 'GOOD PEN'
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
What is the difference between iter and do?
How to call one program from another program in RPG? please help me with the code
How would display prime numbers using CL program?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
how do I declare a minor?
How Chain operation copies the record's data to the input buffer for the program?
how do you use commitment control in rpg?
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
What is file identifier where we can use?
what is the necessary keyword needed to scroll subfile records?
how can I tell when to replace the array?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
what do you mean by an input subfile, what are the keywords required?
How to select highest score of each subject or how to select highest income of every month?