How to change the name of physical members Dynamically?



How to change the name of physical members Dynamically?..

Answer / kathan

Create a clpgm, Use DSPFD command with *mbrlist option. Read
that outfile and ask for user to enter new name and pass it
as a variable name in RNMM comand.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More RPG400 Interview Questions

1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?

8 Answers   HCL,


Can we possible to key with the date field?

1 Answers   IBM,


A rpg or clp command to find if the file field is defined as a character or numeric field.

1 Answers   IBM,


how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.

4 Answers   iSoft, Wipro,


what is the necessary keyword needed to scroll subfile records?

0 Answers   IBM,






Can an indexed file be accessed in arrival sequence in RPG?

3 Answers  


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  


parameters cannot be passed in which one??

2 Answers   CTS,


wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?

2 Answers   Four soft,


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

10 Answers   IBM, Tech Mahindra,


I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,


Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?

2 Answers  


Categories