1) How to retrieve RRN through RPG ?
2) How to pass parameter by value ?
3) How to trap the error through the RPG/400

Answer Posted / vishal

using recno(var) keyword in f spec where var is a variable
to store rrn.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

496


how do you use commitment control in rpg?

759


What is ment by record level identifier?

658


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

715


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

1317






What is the difference between iter and do?

679


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

551


are there any useful c runtime apis that I can call from rpg iv?

703


Explain mdt?

667


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

721


can I touch the array during treatments?

761


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

2521


how do I preserve and clean the array?

677


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4216


What is a record lock error?

1270