1) How to declare a file?
2) How to define a display file?
3) How to monitor error messages in RPG?
4) How to find the attributes for subfiles? and what is the
DDS for subfiles?
Answer Posted / madhu
1Ans).DCL VAR(&A) TYPE(*DEC) VALUE(54)
2ans). DCLF FILE(LIBNAME/FILENAME) RCDFMT(SCREEN NAME)
3Ans.) In FREE FORMAT WE ARE USING MONITOR AND END-MON,THE
CODE LIKE MONITOR;
--------
ON-ERROR(FILE NAME/PGM NAME);
---------
END-MON;
AND ALSO IN RPG/400 WE ARE USING *PSSR SUBROTEN WE CAN TRAP
THE ERRORS
AND ALSO WE R USING FILE INFORMATION DATASTRCTERS, PROGRAM
STATUS DATA STRUCTERS WE CAN TRAP THE ERRORS
4Ans)in subfile we can find out varibles and varibles
lengths in subfile record format key word.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain mdt?
What is a record lock error?
are there any useful c runtime apis that I can call from rpg iv?
what is *place and *auto keyword in prtf ?plz explain
how does the rpg element work?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
How can we override a file during runtime in rpg?
What is difference between bind by copy and bind by reference?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
what is an online rpg?
What is the difference between iter and do?
How Chain operation copies the record's data to the input buffer for the program?
How to call one program from another program in RPG? please help me with the code
what is the procedure and explain about real time scenario.