Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

variable file declaration 1

Status
Not open for further replies.

chirpyform

Programmer
Jun 20, 2003
202
FR
I have found out that it is possible to recuperate some text from the command line, however I need to create a file that corresponds to the name given as parameter.
ex
rtsora sample2.gnt spline
where spline is the name of the file that I want to create and use for the output of my program.

The problem is how to create the link between the physical and logical file names? In fact any explanations about how this works but would be extremely grateful.
 
select file-name assign to F-FILE-NAME
organization indexed
record key is key1.
...
working-storage
01 F-FILE-NAME pic x(100).

Procedure.
aa.
move "/home/app/account98" to F-FILE-NAME
open I-O file-name
read file-name
close file-name

move "/home/app/account01" to F-FILE-NAME
open I-O file-name
read file-name
close file-name

You can search for the command line bit on another thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top