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

How can a screen field that has changed since the last output operation be detected?

4 Answers   IBM,


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

0 Answers  


can i use unique key in LF

3 Answers   TCS,


How do you code file / field renames in ILE RPG?

4 Answers   Accenture, IBM,


Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.

6 Answers  






How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?

4 Answers   CTS,


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

0 Answers  


If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.

3 Answers  


Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers   TCS,


Can we create 300 logical files based on a single physical file using the CRTLF command only once?.

8 Answers  


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

0 Answers  


what is the use of sflnxtchg?

0 Answers   IBM,


Categories