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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1557


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1457


can I touch the array during treatments?

751


how do I preserve and clean the array?

667


what is *place and *auto keyword in prtf ?plz explain

2720






How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1304


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2513


what is the difference between do while and do until?

697


What is ment by record level identifier?

647


When it is desirable to describe files Internally?

1182


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

712


What is file identifier where we can use?

639


what is an online rpg?

723


Explain mdt?

661


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

706