Provide a repository class with method to create file from repository structure, key and file definition
Closed
I know Steve provided a bat file which can create an ISM file from the command line, but it would if you could call a simple method in code to do this.
Setting up multiple segmented keys in ISAMC is not for the faint hearted
If this was available it would be useful to be able to specify file attributes in the repository, such as TBYTE
Steve Ives
5/18/2021 7:04 PM 0
CodeGen has a command-line utility called CreateFile that you can use to create ISAM files. You can find the documentation for it here:
https://codegen.synergex.com/topics/createfileutility.htm
It is installed by default with CodeGen, but if you wanted to make your own version, the code is here:
CodeGen/CreateFile at master · Synergex/CodeGen (github.com)
https://codegen.synergex.com/topics/createfileutility.htm
It is installed by default with CodeGen, but if you wanted to make your own version, the code is here:
CodeGen/CreateFile at master · Synergex/CodeGen (github.com)
5/18/2021 7:04 PM 0
Gordon Ireland
5/18/2021 7:13 PM 0
I know about the utility and I use it.
My suggestion is that you could do this from code.
Otherwise I have to craete empty files on my dev machine an dthen copy to the production environment into multiple data folders. i would rather built into into my code.
My suggestion is that you could do this from code.
Otherwise I have to craete empty files on my dev machine an dthen copy to the production environment into multiple data folders. i would rather built into into my code.
5/18/2021 7:13 PM 0
Steve Ives
5/18/2021 7:16 PM 0
If you look at what CreateFile does, you will see that there is a subroutine under the hood that does all the real work. You could easily strip off the command-line processing and just call that routine.
5/18/2021 7:16 PM 0
Please log in to comment on this idea.