in reply to Ideal way to pass a file to a module
In your calling module you decide whether you want to replace the original file with the temp-file, or not. (How lucky do you feel?) You may also have to take into consideration the difference between fixed and variable length records in your module. That determines where in your output string the asa-ctl char physically goes. (Before the data, of course, but where in the input string does the data start -- is there a rcw or a srcw you have to account for and adjust?)add_asa_ctl_char { file = shift; open file; # I said it was pseudo-code! open temp_file; while <read file} { write temp_file asa_ctl+input_line } close(file, temp_file) return(temp_file) }
The real question is: what are you going to use for the asa-ctl character? I'd not suggest '1'.....
----
I Go Back to Sleep, Now.
OGB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Ideal way to pass a file to a module
by pboin (Deacon) on Apr 12, 2004 at 20:02 UTC |