If record-format name in an externally-described file has
already been defined as a file-name.how to solve this?

Answers were Sorted based on User's Feedback



If record-format name in an externally-described file has already been defined as a file-name.how ..

Answer / rahul

Use the "RENAME" keyword in F specs.
F File1 IF E DISK Rename(File1:Filex)
And use the new record format name "filex" in the program.

Is This Answer Correct ?    31 Yes 3 No

If record-format name in an externally-described file has already been defined as a file-name.how ..

Answer / naresh

use the rename option

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More RPG400 Interview Questions

How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

0 Answers  


Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output

3 Answers  


can you debug ile rpg program using isdb?

0 Answers   IBM,


Suppose you have 3 members in a database file. How to read records from all the members without using CL (OVRDBF) i.e. Entire process should be handled exclusively in a RPG program?

7 Answers  


Hi,This is raju.Can any body give me the real experience answer for this question? 1.What is the significance of *MAP and *DROP in the CPY command?

3 Answers  






1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?

2 Answers   TCS,


1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?

2 Answers   TCS,


Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?

2 Answers  


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

0 Answers   IBM,


i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program

6 Answers  


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

0 Answers   IBM,


Categories