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 |
RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.
How we will read call stack?
I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.
how can we know running job is batch or intractive ? i need all the possibilites.........plz help me
1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAIN D:READP 2.How to pass numeric parameter to the rpg pgm from the command line? 3.What keyword is used on the rpg 4 definition specification to rename a subfile in an externally definition data structure? A:RENAME B;LIKE C:EXTNAME D:EXTFLD
i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel
difference betwen keywords and opcodes
How can you delete a record from a file in RPG without using DELETE oppcode?
Need a sql query: retrive all duplicate records in table