Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area valu..

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 overlay? how can we pass parameters in cl or rpg programing? how can we get data area valu..

Answer / vicky

we can also use overlay on subfile

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More RPG400 Interview Questions

What is the purpose of PUTOVR keyword?

2 Answers  


why subproc not run in dftactgrp?????/plz explain

2 Answers   CSC,


how can I tell when to replace the array?

0 Answers   IBM,


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?

4 Answers  


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?

1 Answers  


Delete FileName at first statement in RPG.

1 Answers  


How many program bind in one module....

0 Answers  


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?

0 Answers  


How do I link an existing logical file to it's Physical File without recompiling?

2 Answers  


Write a program to display prime numbers between 1 to 100 using RPGLE.

1 Answers  


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

0 Answers  


Categories