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 / sreedhar reddy

Retrieve Call Stack (QWVRCSTK) API will do it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to declare the pull button in AS/400..

1872


what is program status data structure?

1373


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5390


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2189


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






how do I declare a table or array in rpg iv?

730


What is the difference between copybooks and subprocedures in as400?

801


How to select highest score of each subject or how to select highest income of every month?

1291


What is a record lock error?

1259


what is the difference between do while and do until?

697


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

2513


what are the key words you must use when using a subfile?

685


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.

749


what was the robotech rpg?

680


how do I play {insert rpg system here}?

579