JED Editor Search and Replace Subvalues
- Lars
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 110
- Thank you received: 8
14 years 8 months ago #5710
by Lars
JED Editor Search and Replace Subvalues was created by Lars
Hello,
I am facing following problem (jbase 5 / T24 R8 / db2)
I want to fill SM with a value in one specific row of a record, using the
JED command "R" or "RU".
JED F.ENQUIRY MYENQ
...
0020 ]]]]]]
0021 ]]]]]]
Trying command:
R/]/HELLO
I get message :String ']' not found
but
Command->R/11/22
0020 ]11]]]]]
0021 ]]]]]]
works:
String '11' replaced on 1 line Insert 16:43:32
Command->
0019 ]]]]]]
0020 ]22]]]]]
***************************
In the Universe the was the up-arrow mode to show the Value Marker with their ASCII code
and the "ED" worked perfectly.
Can anyone help??
Thanks
Lars
I am facing following problem (jbase 5 / T24 R8 / db2)
I want to fill SM with a value in one specific row of a record, using the
JED command "R" or "RU".
JED F.ENQUIRY MYENQ
...
0020 ]]]]]]
0021 ]]]]]]
Trying command:
R/]/HELLO
I get message :String ']' not found
but
Command->R/11/22
0020 ]11]]]]]
0021 ]]]]]]
works:
String '11' replaced on 1 line Insert 16:43:32
Command->
0019 ]]]]]]
0020 ]22]]]]]
***************************
In the Universe the was the up-arrow mode to show the Value Marker with their ASCII code
and the "ED" worked perfectly.
Can anyone help??
Thanks
Lars
Please Log in or Create an account to join the conversation.
- shiv_shankar
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
14 years 8 months ago #5721
by shiv_shankar
Replied by shiv_shankar on topic Re: JED Editor Search and Replace Subvalues
hi.. this is Shiva... hope this info will help u...
The editor allows the user to replace any occurrence of a string on any line with another from the Command line. This is in addition to the overwrite mode.
The Command Syntax is as follows:
R{U}{nnn}dstring1dstring2{doption}
U
Replaces ALL occurrences of string1 with string2 on the current line only.
nnn
A numeric value for the number of lines, starting from the current one, over which to perform the replace operation. If this optional parameter is specified and more than a single occurrence of string1 is found then all replacements are listed beneath the current editing screen. d is the delimiter character used to separate the string values. It can be any character not in either of the strings.
string1
The string that is to be replaced.
string2
The replacement string, which can be shorter or longer than the original.
EXAMPLES
R/ABC/DEF
Replaces the first occurrence (reading from the left) of ABC in the current line with DEF.
R9/*/!
Replace on the next 9 lines, the first occurrence on the line of "*" with a "!". The changed lines are displayed before moving on.
RU9/*/!
Replace any occurrence of "*" with "!" over nine lines (the current line and the next 8).
R999//*/F
Starting at the first line place a "*" character on every line; all modified lines are shown before returning to the original line.
R/^/AM/*
All occurrences of the "^" character on the line are replaced with "AM".
R9/*//
Removes (replaces with null) the first occurrence of "*" on the next nine lines.
R/x//10
Removes the first 10 "x" characters on the current line.
The editor allows the user to replace any occurrence of a string on any line with another from the Command line. This is in addition to the overwrite mode.
The Command Syntax is as follows:
R{U}{nnn}dstring1dstring2{doption}
U
Replaces ALL occurrences of string1 with string2 on the current line only.
nnn
A numeric value for the number of lines, starting from the current one, over which to perform the replace operation. If this optional parameter is specified and more than a single occurrence of string1 is found then all replacements are listed beneath the current editing screen. d is the delimiter character used to separate the string values. It can be any character not in either of the strings.
string1
The string that is to be replaced.
string2
The replacement string, which can be shorter or longer than the original.
EXAMPLES
R/ABC/DEF
Replaces the first occurrence (reading from the left) of ABC in the current line with DEF.
R9/*/!
Replace on the next 9 lines, the first occurrence on the line of "*" with a "!". The changed lines are displayed before moving on.
RU9/*/!
Replace any occurrence of "*" with "!" over nine lines (the current line and the next 8).
R999//*/F
Starting at the first line place a "*" character on every line; all modified lines are shown before returning to the original line.
R/^/AM/*
All occurrences of the "^" character on the line are replaced with "AM".
R9/*//
Removes (replaces with null) the first occurrence of "*" on the next nine lines.
R/x//10
Removes the first 10 "x" characters on the current line.
Please Log in or Create an account to join the conversation.
- Lars
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 110
- Thank you received: 8
14 years 8 months ago #5766
by Lars
Replied by Lars on topic Re: JED Editor Search and Replace Subvalues
Hi Shiva,
thanks for the doku. But the problem is, that
the "R"- command does not replace Value/Subvalue markers.
It works on all other parts of the string....
thanks for the doku. But the problem is, that
the "R"- command does not replace Value/Subvalue markers.
It works on all other parts of the string....
Please Log in or Create an account to join the conversation.
- Barua.Barua
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 4
14 years 8 months ago #5767
by Barua.Barua
Replied by Barua.Barua on topic Re: JED Editor Search and Replace Subvalues
the ] looks like this in windows.
1001ý6001 -> 1000]6000
so copy all records to windows and do a find/ replace using note pad.copy it back again . :)
1001ý6001 -> 1000]6000
so copy all records to windows and do a find/ replace using note pad.copy it back again . :)
Please Log in or Create an account to join the conversation.
- Barua.Barua
- Offline
- Senior Member
-
Less
More
- Posts: 42
- Thank you received: 4
14 years 8 months ago #5768
by Barua.Barua
Replied by Barua.Barua on topic Re: JED Editor Search and Replace Subvalues
I am Able to replace via jed now using Putty.
Change the putty setting > transalation to UTF8.
Copy the ý character and do a R9999999 ] HELLO to replace.
The ý is converted to ] as soon as u paste after u change the translation in putty.
Change the putty setting > transalation to UTF8.
Copy the ý character and do a R9999999 ] HELLO to replace.
The ý is converted to ] as soon as u paste after u change the translation in putty.
The following user(s) said Thank You: Lars
Please Log in or Create an account to join the conversation.
- originative
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 1
14 years 7 months ago #5975
by originative
Replied by originative on topic Re: JED Editor Search and Replace Subvalues
use Tera Term with some modification
as shown here
. you will not face any problems like this again.
Please Log in or Create an account to join the conversation.
Time to create page: 0.040 seconds