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 / harshad

Update LDA with PGMA & retrieve the same in PGMB for
printing.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2273


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

706


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

483


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

730


How Chain operation copies the record's data to the input buffer for the program?

1076






what is an online rpg?

723


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

511


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2367


What is the difference between iter and do?

667


What is file identifier where we can use?

639


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

761


How to call one program from another program in RPG? please help me with the code

1252


can you debug ile rpg program using isdb?

732


what do you mean by an input subfile, what are the keywords required?

766


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

824