How to declare the dynamic(run time) array in rpgle?
can you please give example
Answers were Sorted based on User's Feedback
Answer / royal
Dmonth S 5s 0 DIM(5)
DI S 2p 0 inz(1)
c dow i <= 10
c* eval month(i) = i
c month(i) dsply
c eval i = i + 1
c enddo
/FREE
*INLR = *ON ;
/END-FREE
this answer is not correct please give me correct code
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / karthik
Dary1 s dim(5)
Dn s 2p 0 inz(1)
c dow(n<=10)
c ary1(n) dsply
c eval n=n+1
c enddo
c seton lr
| Is This Answer Correct ? | 3 Yes | 5 No |
1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF
Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?
how to change the length of the field in a physicalfile?
are there any useful c runtime apis that I can call from rpg iv?
1.I Have a physical file , i want to read the data from the each and every member of the File in the CL Program.How do you achieve this. 2.How do you do the same in RPG?. do think is it possible to read data from all the members in the RPG?
What is the purpose of Panel Groups?
how can i retrieve the field name from display file at run time? Devendra Singh Tomar
How to find d key field of a pf that doesn’t have source physical file?
how do I play {insert rpg system here}?
What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?
What does Implicit Open means with respect to a file ? What about the Explicit Open?..what are the major differences between these two?
RPG/400 faqs?