I'm not sure if this is possible with UltraEdit.
I have two files, a program file and a parameter file. In the program files there are default parameter values, in the parameter file there are true parameter values.
My question is, is it possible to replace the default parameter vaules with the parameter value in the second file?
example.
file 1 (program file):
Same file again without the preceding characters, but with bold highlighting the important values which should be replaced.
BEGIN DSJOB
Identifier "defaultvalue1"
DateModified "2008-02-22"
TimeModified "08.52.00"
BEGIN DSRECORD
Identifier "ROOT"
OLEType "CJobDefn"
Readonly "0"
Name "defaultvalue1"
Description "Interface Data: Bepalen controlegetallen van de ingelezen interface."
NextID "2"
Container "V0"
FullDescription =+=+=+=
JobVersion "36.0.0"
ControlAfterSubr "0"
Parameters "CParameters"
BEGIN DSSUBRECORD
Name defaultvalue1
Prompt "defaultvalue2"
ParamType "defaultvalue3"
ParamLength "defaultvalue4"
ParamScale "defaultvalue5"
END DSSUBRECORD
file2 parameter file: (has no preceding white-spaces)
defaultvalue1 = interface1
defaultvalue2 = testting
defaultvalue3 = 0
defaultvalue4 = 0
defaultvalue5 = 0
The program file is not a large files approximatly 2 MB, parameter file is less, approximatly 500 KB.
Version of UE is V10.20c
I am new to this forum and writing macros as well
If you know how to write the macro, then please help me.
I have two files, a program file and a parameter file. In the program files there are default parameter values, in the parameter file there are true parameter values.
My question is, is it possible to replace the default parameter vaules with the parameter value in the second file?
example.
file 1 (program file):
Code: Select all
BEGIN DSJOB
Identifier "defaultvalue1"
DateModified "2008-02-22"
TimeModified "08.52.00"
BEGIN DSRECORD
Identifier "ROOT"
OLEType "CJobDefn"
Readonly "0"
Name "defaultvalue1"
Description "Interface Data: Bepalen controlegetallen van de ingelezen interface."
NextID "2"
Container "V0"
FullDescription =+=+=+=
JobVersion "36.0.0"
ControlAfterSubr "0"
Parameters "CParameters"
BEGIN DSSUBRECORD
Name defaultvalue1
Prompt "defaultvalue2"
ParamType "defaultvalue3"
ParamLength "defaultvalue4"
ParamScale "defaultvalue5"
END DSSUBRECORD
BEGIN DSJOB
Identifier "defaultvalue1"
DateModified "2008-02-22"
TimeModified "08.52.00"
BEGIN DSRECORD
Identifier "ROOT"
OLEType "CJobDefn"
Readonly "0"
Name "defaultvalue1"
Description "Interface Data: Bepalen controlegetallen van de ingelezen interface."
NextID "2"
Container "V0"
FullDescription =+=+=+=
JobVersion "36.0.0"
ControlAfterSubr "0"
Parameters "CParameters"
BEGIN DSSUBRECORD
Name defaultvalue1
Prompt "defaultvalue2"
ParamType "defaultvalue3"
ParamLength "defaultvalue4"
ParamScale "defaultvalue5"
END DSSUBRECORD
file2 parameter file: (has no preceding white-spaces)
defaultvalue1 = interface1
defaultvalue2 = testting
defaultvalue3 = 0
defaultvalue4 = 0
defaultvalue5 = 0
The program file is not a large files approximatly 2 MB, parameter file is less, approximatly 500 KB.
Version of UE is V10.20c
I am new to this forum and writing macros as well
If you know how to write the macro, then please help me.