Creating files with long file names
Posted: Fri Aug 14, 2009 5:47 pm
Hello,
I`m a Cobol programmer using an old dos level compiler. ?I have a situation where I need to create a file with a long file name. ? I want to write a basic program to read the short named file (created by the cobol program) and copy it to a long named file. ?
What I was thinking of doing is have my cobol program create a big data file called CLAIMS.TXT ?(may be 1mg) and a ?CLAIMS.cfg file with 2 records. ?The first record would be ?the input filename "CLAIMS.TXT" ?and the second record would be the output file name UPLOADFOLDERCLAIMS_YYMMDD_LOCATION.TXT.
The Basic program would read the claims.cfg to get the shortinput and longoutput file names , then do a copy , or a read and write until EOF.
This would run on an XP workstation on a microsoft server.
Sounds simple, ? can fnxBasic write long file names ?
Thanks
I`m a Cobol programmer using an old dos level compiler. ?I have a situation where I need to create a file with a long file name. ? I want to write a basic program to read the short named file (created by the cobol program) and copy it to a long named file. ?
What I was thinking of doing is have my cobol program create a big data file called CLAIMS.TXT ?(may be 1mg) and a ?CLAIMS.cfg file with 2 records. ?The first record would be ?the input filename "CLAIMS.TXT" ?and the second record would be the output file name UPLOADFOLDERCLAIMS_YYMMDD_LOCATION.TXT.
The Basic program would read the claims.cfg to get the shortinput and longoutput file names , then do a copy , or a read and write until EOF.
This would run on an XP workstation on a microsoft server.
Sounds simple, ? can fnxBasic write long file names ?
Thanks