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 are the commands that can be executed in CLP but not in RPG? Why?

1 Answers   CSC,


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel

2 Answers   IBM,


1.Coding in cl to send an message? 2..What is turnover and use? What are the different levels?

4 Answers   IBM,


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

0 Answers   IBM,


How to call one program from another program in RPG? please help me with the code

0 Answers   HCL,


How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)

6 Answers   CTS, IBM,


what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?

3 Answers  


Can anybody tell me that why we use option(*nodebugio)in H- Spec?

3 Answers  


What does Implicit Open means with respect to a file ? What about the Explicit Open?..what are the major differences between these two?

1 Answers   IBM,


Difference between creating a report using Printer file and WRKQRY(Query Report) ?

3 Answers  


what is *place and *auto keyword in prtf ?plz explain

0 Answers   CSC,


Categories