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 / swetha p rao

There is an API QWVRCSTK to find out the called program name
If we pass required parameters to the API we can find out
called program name.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a record lock error?

1265


what is the necessary keyword needed to scroll subfile records?

702


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1017


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

493


what is the rpg system?

665






how can I tell when to replace the array?

702


what is kids-rpg?

667


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

709


How to write record if no field or the field are different in physical file in rpgle ?

490


What is the difference between iter and do?

674


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?

615


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

737


what is program status data structure?

1387


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...

1310


can I touch the array during treatments?

756