what is overlay? how can we pass parameters in cl or rpg
programing? how can we get data area value in cl or rpg
programming?
Answers were Sorted based on User's Feedback
Answer / radha sammangi
1)
overlay : This is keyword which is used for overlays the storage of one subfield with another subfield in a data structure.
Ex:
D Datastructure DS
D Fullname 15a
D Firstname 6a OVERLAY(Fullname)
D Middlename 5a OVERLAY(Fullname:7)
D Lastname 4a OVERLAY(Fullname:12)
Even we can use OVERLAY(Fullname :*NEXT) instead of positions.
2) CALL PGM(program name) PARM(A B C....) in CL
CALL 'Pgmname' Plist /*In RPG
Plist KLIST
PARM A
PARM B
PARM C
3)
RTVDTAARA in CL
RTVDTAARA DTAARA(DA1) RTNVAR(&Var)
We can use IN and OUT operations for reading and writing data area in RPG programs.
| Is This Answer Correct ? | 15 Yes | 2 No |
What is the purpose of PUTOVR keyword?
why subproc not run in dftactgrp?????/plz explain
how can I tell when to replace the array?
In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?
what is the procedure and explain about real time scenario.
0 Answers Adhoc Technologies, Hanuman Automation, HSBC, IBM,
what r drawbacks of OPM? Why do we go for ILE RPG?
Delete FileName at first statement in RPG.
How many program bind in one module....
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?
How do I link an existing logical file to it's Physical File without recompiling?
Write a program to display prime numbers between 1 to 100 using RPGLE.
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?