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 / vaibhav gupta
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 ? | 13 Yes | 0 No |
Post New Answer View All Answers
How to declare the pull button in AS/400..
Explain mdt?
What is ment by record level identifier?
what is a rpg?
What is file identifier where we can use?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
How to handle duplicate error handling in RPG?
what is the rpg system?
what are the key words you must use when using a subfile?
What are the types of identifiers?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
How to write record if no field or the field are different in physical file in rpgle ?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
When it is desirable to describe files Internally?
what is the necessary keyword needed to scroll subfile records?