The PGMA calls PGMB.PGMB generates a report.The report
should contain the called program name(PGMA).How do i get
the called program name in PGMB to print it on the spool
file?(calling program name should NOT be hard coded or
passed as parameter to called program?
Answer Posted / renjith
When you call pgm B send a parameter also which contains
the name pgm A. so in report for the name of pgm A you can
move the parameter value.
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
How can we override a file during runtime in rpg?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
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...
how do I play {insert rpg system here}?
How Chain operation copies the record's data to the input buffer for the program?
what is the necessary keyword needed to scroll subfile records?
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...?
What is file identifier where we can use?
how can I tell when to replace the array?
what is the difference between do while and do until?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
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 the difference between iter and do?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
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?