What will be the value of STRING after line 0106 is
executed in the code below?

0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda
0102 E ARR 8 1
0103 ISTRING DS
0104 I 1 8 ARR
0105 C MOVE *BLANK STRING
0106 C MOVEA'ABC' ARR

A) 'AAAAAAAA'
B) 'BBBBBBBB'
C) 'CCCCCCCC'
D) 'ABC '
E) ' ABC'

Answers were Sorted based on User's Feedback



What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfil..

Answer / samul paul

Answer would be :-

ARR(1) = 'A'
ARR(2) = 'B'
ARR(3) = 'C'
ARR(4) = ' '
ARR(5) = ' '
ARR(6) = ' '
ARR(7) = ' '
ARR(8) = ' '

Is This Answer Correct ?    3 Yes 1 No

What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfil..

Answer / sachin

Answer is option D...plz suggest if I am worng

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More RPG400 Interview Questions

Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?

3 Answers   HCL,


what is the difference between do while and do until?

0 Answers   IBM,


To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / member lock. I confused with the Lock type and Status values...Can any body please tell me ...

5 Answers  


suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis

1 Answers  






How to update physical file in rpgle without using display file?

4 Answers   GalaxE, IBM, TCS,


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,


How many program bind in one module....

0 Answers  


1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS

3 Answers   IBM,


How can you delete a record from a file in RPG without using DELETE oppcode?

2 Answers   UST,


how to change the length of the field in a physicalfile?

12 Answers  


Categories