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 |
why we do STRSRVJOB in batch debugging in as400
What is Multi Occurrence Data Structure(MODS)?
How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...
what is EXCEPT command in rpg and use
How to read alternative records in a pf by using rpg?
how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
how can an indexed file be used as arrival sequence in RPG?
The PGMA calls PGMB.PGMB generates a report.The report should contain the called program name(PGMA).How do i get the called program name in PGMB to print it on the spool file?(calling program name should NOT be hard coded or passed as parameter to called program?
wat is the difference between dataarea and data queue?
5 Answers Airtel, Four soft, Shahi Exports,
thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?