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 |
suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis
CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.
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?
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
Why we cannot call a service program? If I add a PEP can i call the service program?
How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?
What is the difference between inner join @ outer join
1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?
How to print output from openquery in as400 ?
what is difference between DSPFD and DSPFFD?please give me real senario with good example?
What is use of IMPORT and EXPORT in RPGLE ? What is activation Group ? What is Service Program ???? How to call another program in RPGLE ?