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
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
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...?
can I touch the array during treatments?
how do I preserve and clean the array?
what is *place and *auto keyword in prtf ?plz explain
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...
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
what is the difference between do while and do until?
What is ment by record level identifier?
When it is desirable to describe files Internally?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
What is file identifier where we can use?
what is an online rpg?
Explain mdt?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?