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

WHAT IS MONMSG IDENTIFIER FOR STRTCPFTP command IN cl (as/400)?

3 Answers  


Delete FileName at first statement in RPG.

1 Answers  


can you debug ile rpg program using isdb?

0 Answers   IBM,


WHAT IS MEANT BY SIGNATURE VAILOTION ERROR

1 Answers   IBM,


How do you call procedures in ILE?

3 Answers  






explain sflclr, sflend, sfldlt, and sflcsrrrn?

0 Answers   IBM,


Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

2 Answers   iGate,


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


what is importance of 'MAPFLD' IN OPNQRYF FILE ?

2 Answers  


What are the necessary keywords required to code a message subfile?

3 Answers  


what is the difference between SETON RT & RETURN?

5 Answers  


I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic

2 Answers  


Categories