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
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 is difference between bind by copy and bind by reference?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
What is journalling and commitment control?
Delete FileName at first statement in RPG.
Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?
Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?
Explain mdt?
How to search particular records from the database file in rpg?
use of PUTOVR,OVRDTA,KEEP keywords?
I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this
How to declare the dynamic(run time) array in rpgle? can you please give example
Why did we give STRSRVJOB while debugging batch program