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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between copybooks and subprocedures in as400?

810


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

700


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

755


what is file information data structure?

1374


How many program bind in one module....

2122






Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1463


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

509


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?

517


what is the use of sflnxtchg?

804


explain sflclr, sflend, sfldlt, and sflcsrrrn?

890


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

490


which program rpg or cl is efficent to update a transaction onto a database file and why ?

747


how do I play {insert rpg system here}?

586


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

1969


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

1260