jimmybhandari
New User
Joined: 04 Jun 2009 Posts: 13 Location: bangalore
|
|
|
|
Hi
Is it possible to create a load module for an Easytrieve program such that we can pass the file declaration parameters later while executing the same. I want to use this concept in a utility program which i am creating for my client. It would not be possible for me to explain the full code here but, i will try to explain the problem for which i am seeking solution by providing a very simple example.
Lets say we have an easytrieve program to copy contents of one file to another. For this program, we will provide the two input dataset names and declare the files as below
File Infile
In-rec 1 10
File outfile
Out-rec 1 10
We can easily create a load module for the above program which will work fine as long as the input file has a record length of 10. But, if the input file is of varying record length, we will have to pass the record length to the load module while executing the same.
Please see if you can help me regarding this.
Thanks
Jimmy |
|