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 / vinit

good pen

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a record lock error?

1272


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

718


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.

2203


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2378


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

1899






Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

521


how do you use commitment control in rpg?

761


what is the use of sflnxtchg?

807


what is the rpg system?

670


what is the necessary keyword needed to scroll subfile records?

707


What are the types of identifiers?

574


what is kids-rpg?

675


how can I tell when to replace the array?

706


What is the purpose of record level identifier?

732


are there any useful c runtime apis that I can call from rpg iv?

705