Re: ispf edit macro "HX" line command

2021-09-19 Thread Seymour J Metz
At least in z/OS 2.4, the documentation states that you can't issue a line 
command from a macro. RFE?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3



From: IBM Mainframe Discussion List  on behalf of 
Weizman arbel 
Sent: Sunday, September 19, 2021 4:12 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

I remembered that
(:) prefix command line (primary command) can execute line command
Command ===> :hx
Command ===> :i
Command ===> :r
etc ...

https://www.ibm.com/docs/en/zos/2.1.0?topic=commands-line
You can enter edit line commands as primary commands on the command line by 
prefixing them with a colon (:) and placing the cursor on the target line. For 
example, if you enter :D3 on the command line and move your cursor to line 12 
of the file, the three lines 12, 13, and 14 are deleted from the file. This 
technique is normally used for PF key assignments.


address isredit
":HX"
Does not work Because it is Not an edit command

How to push command to ZCMD ?

I tried

address ispexec
"control errors return"
Mycmd = ':HX'
"DISPLAY COMMAND(Mycmd)"

It does not work

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-19 Thread Weizman arbel
I remembered that
(:) prefix command line (primary command) can execute line command
Command ===> :hx
Command ===> :i
Command ===> :r
etc ...

https://www.ibm.com/docs/en/zos/2.1.0?topic=commands-line
You can enter edit line commands as primary commands on the command line by 
prefixing them with a colon (:) and placing the cursor on the target line. For 
example, if you enter :D3 on the command line and move your cursor to line 12 
of the file, the three lines 12, 13, and 14 are deleted from the file. This 
technique is normally used for PF key assignments.


address isredit
":HX"  
Does not work Because it is Not an edit command

How to push command to ZCMD ?

I tried

address ispexec
"control errors return"
Mycmd = ':HX'   
"DISPLAY COMMAND(Mycmd)"

It does not work

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-12 Thread Hank Oerlemans
Sloppy coding then but it answers the original


"is there is a way to execute  "HX"  line command from edit macro ? "

Pick a different label name and add smarts for determining the line number.

Hank

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-10 Thread Seymour J Metz
That code has nothing to do with edit line commands. Your LABEL command assigns 
a label that (minus the period) happens to have the same spelling as the HX 
edit line command.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Hank Oerlemans [03c4d8bf55f3-dmarc-requ...@listserv.ua.edu]
Sent: Friday, September 10, 2021 12:48 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

/* Rexx */
Address isredit
"macro"
"label 4 = .HX"
"FLIP .HX"

flips line 4.

Hank

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-09 Thread Hank Oerlemans
/* Rexx */  
Address isredit 
"macro" 
"label 4 = .HX" 
"FLIP .HX"  

flips line 4.

Hank

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-09 Thread Seymour J Metz
I, D, C, CC, RR and DD are not ISREDIT commands or assignment statements. The 
issue is whether there is a way to issue line commands from an EDIT macro, not 
whether you can issuethem from a keyboard.

There is an ISREDIT INSERT command that has the same effect as an I line 
command, but they are different commands. I wouldn't be surprised, however, if 
they shared some code.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Thursday, September 9, 2021 3:01 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

well, i conciser them line commands since I position my cursor on a line
and use  'I', 'D', 'C' 'CC' 'RR' 'DD'.etc

Carmen

On 9/9/2021 1:57 PM, Seymour J Metz wrote:
> ISREDIT commands and assignment statements like DELETE, INSERT, LABEL, 
> LINE_AFTER, LINE_BEFORE and SHIFT foo are not line commands.
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> 
> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
> Carmen Vitullo [cvitu...@hughes.net]
> Sent: Thursday, September 9, 2021 1:55 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: ispf edit macro "HX" line command
>
> I'll have to believe you didn't find it, but I've used edit line
> commands in macros, like insert, repeat,copy, delete, and assign a label
> to a line, range(s)
>
> if I made an assumption HX is valid then that was a bad assumption
>
>
> Carmen
>
> On 9/9/2021 12:49 PM, Seymour J Metz wrote:
>> I checked Edit assignment statements" and "Chapter 11. Edit macro commands 
>> and assignment statements" in z/OS 2.4 ISPF Edit and Edit Macros,  
>> SC19-3621-40, and couldn't find any way for an edit macro to issue a line 
>> command. What did you do with the variable CMD to treat its value as a line 
>> command?
>>
>>
>> --
>> Shmuel (Seymour J.) Metz
>> http://mason.gmu.edu/~smetz3
>>
>> 
>> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
>> Carmen Vitullo [cvitu...@hughes.net]
>> Sent: Thursday, September 9, 2021 11:35 AM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: Re: ispf edit macro "HX" line command
>>
>> IIRC yes, then followed by an ISREDIT command to issue the line command,
>> but again without testing and having the time to test I'm not 100% sure
>>
>> I made an assumption the OP had an alternate solution.
>>
>> Carmen
>>
>>
>> On 9/9/2021 10:12 AM, Seymour J Metz wrote:
>>>> ISREDIT (CMD) = 'HX'  should work -I've not tested
>>> Doesn't that just set the variable CMD to the VALUE HX?
>>>
>>>
>>> --
>>> Shmuel (Seymour J.) Metz
>>> http://mason.gmu.edu/~smetz3
>>>
>>> 
>>> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
>>> Carmen Vitullo [cvitu...@hughes.net]
>>> Sent: Tuesday, September 7, 2021 10:12 AM
>>> To: IBM-MAIN@LISTSERV.UA.EDU
>>> Subject: Re: ispf edit macro "HX" line command
>>>
>>> Like I said I never used this line command, my syntax was not correct
>>> but a quick check;
>>>
>>> ISREDIT (CMD) = 'HX'  should work -I've not tested
>>>
>>> you need to have the cursor positioned to where you need first.
>>>
>>> I have some examples that position the cursor and perform some tasks but
>>> none that would help you here
>>>
>>> the IBM doc would be helpful for review
>>>
>>> Carmen
>>>
>>> On 9/5/2021 3:27 AM, Weizman arbel wrote:
>>>>> I do not understand your response, you asked;
>>>> I asked about  line commnad
>>>>
>>>>> ISREDIT HX .ZCSR
>>>> There was a suggestion
>>>> and my response was
>>>> that is a line command And it does not work.
>>>> Sorry for the misunderstanding
>>>>
>>>> I did not know the option
>>>> "quote original message"
>>>> and It's tapping me to comment
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  
>>>> wrote:
>>>>
>>>>> I do not understand your response, you asked;
>>>>>
>>>>> there is a way t

Re: ispf edit macro "HX" line command

2021-09-09 Thread Joe Monk
Actually they are:

https://www.ibm.com/docs/en/zos/2.2.0?topic=macros-performing-line-command-functions

Here's the HEX command edit macro:
https://www.ibm.com/docs/en/zos/2.2.0?topic=statements-hexset-query-hexadecimal-mode

Joe

On Thu, Sep 9, 2021 at 2:02 PM Carmen Vitullo  wrote:

> well, i conciser them line commands since I position my cursor on a line
> and use  'I', 'D', 'C' 'CC' 'RR' 'DD'.etc
>
> Carmen
>
> On 9/9/2021 1:57 PM, Seymour J Metz wrote:
> > ISREDIT commands and assignment statements like DELETE, INSERT, LABEL,
> LINE_AFTER, LINE_BEFORE and SHIFT foo are not line commands.
> >
> >
> > --
> > Shmuel (Seymour J.) Metz
> > http://mason.gmu.edu/~smetz3
> >
> > 
> > From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on
> behalf of Carmen Vitullo [cvitu...@hughes.net]
> > Sent: Thursday, September 9, 2021 1:55 PM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: ispf edit macro "HX" line command
> >
> > I'll have to believe you didn't find it, but I've used edit line
> > commands in macros, like insert, repeat,copy, delete, and assign a label
> > to a line, range(s)
> >
> > if I made an assumption HX is valid then that was a bad assumption
> >
> >
> > Carmen
> >
> > On 9/9/2021 12:49 PM, Seymour J Metz wrote:
> >> I checked Edit assignment statements" and "Chapter 11. Edit macro
> commands and assignment statements" in z/OS 2.4 ISPF Edit and Edit Macros,
> SC19-3621-40, and couldn't find any way for an edit macro to issue a line
> command. What did you do with the variable CMD to treat its value as a line
> command?
> >>
> >>
> >> --
> >> Shmuel (Seymour J.) Metz
> >> http://mason.gmu.edu/~smetz3
> >>
> >> ____________
> >> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on
> behalf of Carmen Vitullo [cvitu...@hughes.net]
> >> Sent: Thursday, September 9, 2021 11:35 AM
> >> To: IBM-MAIN@LISTSERV.UA.EDU
> >> Subject: Re: ispf edit macro "HX" line command
> >>
> >> IIRC yes, then followed by an ISREDIT command to issue the line command,
> >> but again without testing and having the time to test I'm not 100% sure
> >>
> >> I made an assumption the OP had an alternate solution.
> >>
> >> Carmen
> >>
> >>
> >> On 9/9/2021 10:12 AM, Seymour J Metz wrote:
> >>>> ISREDIT (CMD) = 'HX'  should work -I've not tested
> >>> Doesn't that just set the variable CMD to the VALUE HX?
> >>>
> >>>
> >>> --
> >>> Shmuel (Seymour J.) Metz
> >>> http://mason.gmu.edu/~smetz3
> >>>
> >>> 
> >>> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on
> behalf of Carmen Vitullo [cvitu...@hughes.net]
> >>> Sent: Tuesday, September 7, 2021 10:12 AM
> >>> To: IBM-MAIN@LISTSERV.UA.EDU
> >>> Subject: Re: ispf edit macro "HX" line command
> >>>
> >>> Like I said I never used this line command, my syntax was not correct
> >>> but a quick check;
> >>>
> >>> ISREDIT (CMD) = 'HX'  should work -I've not tested
> >>>
> >>> you need to have the cursor positioned to where you need first.
> >>>
> >>> I have some examples that position the cursor and perform some tasks
> but
> >>> none that would help you here
> >>>
> >>> the IBM doc would be helpful for review
> >>>
> >>> Carmen
> >>>
> >>> On 9/5/2021 3:27 AM, Weizman arbel wrote:
> >>>>> I do not understand your response, you asked;
> >>>> I asked about  line commnad
> >>>>
> >>>>> ISREDIT HX .ZCSR
> >>>> There was a suggestion
> >>>> and my response was
> >>>> that is a line command And it does not work.
> >>>> Sorry for the misunderstanding
> >>>>
> >>>> I did not know the option
> >>>> "quote original message"
> >>>> and It's tapping me to comment
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo
> wrote:
> >>>>
> >>>>> I d

Re: ispf edit macro "HX" line command

2021-09-09 Thread Carmen Vitullo
Answering myself, IBM doc at 2.1 and I'm pretty sure 2.4 see's these 
commands as edit line commands


https://www.ibm.com/docs/en/zos/2.1.0?topic=reference-edit-line-commands 
<https://www.ibm.com/docs/en/zos/2.1.0?topic=reference-edit-line-commands>



HX being one edit and edit macro line command

On 9/9/2021 2:01 PM, Carmen Vitullo wrote:
well, i conciser them line commands since I position my cursor on a 
line and use  'I', 'D', 'C' 'CC' 'RR' 'DD'.etc


Carmen

On 9/9/2021 1:57 PM, Seymour J Metz wrote:
ISREDIT commands and assignment statements like DELETE, INSERT, 
LABEL, LINE_AFTER, LINE_BEFORE and SHIFT foo are not line commands.



--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on 
behalf of Carmen Vitullo [cvitu...@hughes.net]

Sent: Thursday, September 9, 2021 1:55 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

I'll have to believe you didn't find it, but I've used edit line
commands in macros, like insert, repeat,copy, delete, and assign a label
to a line, range(s)

if I made an assumption HX is valid then that was a bad assumption


Carmen

On 9/9/2021 12:49 PM, Seymour J Metz wrote:
I checked Edit assignment statements" and "Chapter 11. Edit macro 
commands and assignment statements" in z/OS 2.4 ISPF Edit and Edit 
Macros, SC19-3621-40, and couldn't find any way for an edit macro to 
issue a line command. What did you do with the variable CMD to treat 
its value as a line command?



--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on 
behalf of Carmen Vitullo [cvitu...@hughes.net]

Sent: Thursday, September 9, 2021 11:35 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

IIRC yes, then followed by an ISREDIT command to issue the line 
command,

but again without testing and having the time to test I'm not 100% sure

I made an assumption the OP had an alternate solution.

Carmen


On 9/9/2021 10:12 AM, Seymour J Metz wrote:

ISREDIT (CMD) = 'HX'  should work -I've not tested

Doesn't that just set the variable CMD to the VALUE HX?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on 
behalf of Carmen Vitullo [cvitu...@hughes.net]

Sent: Tuesday, September 7, 2021 10:12 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

Like I said I never used this line command, my syntax was not correct
but a quick check;

ISREDIT (CMD) = 'HX'  should work -I've not tested

you need to have the cursor positioned to where you need first.

I have some examples that position the cursor and perform some 
tasks but

none that would help you here

the IBM doc would be helpful for review

Carmen

On 9/5/2021 3:27 AM, Weizman arbel wrote:

I do not understand your response, you asked;

I asked about  line commnad


ISREDIT HX .ZCSR

There was a suggestion
and my response was
that is a line command And it does not work.
Sorry for the misunderstanding

I did not know the option
"quote original message"
and It's tapping me to comment





On Thu, 2 Sep 2021 10:55:00 -0500, Carmen 
Vitullo  wrote:



I do not understand your response, you asked;

there is a way to execute  "HX"  line command

>from edit macro ?

ISREDIT HX .ZCSR

- is a line command

now you are asking command line ?
so
ISREDIT (CMD) - 'HEX'

Carmen

On 9/2/2021 10:14 AM, Weizman arbel wrote:

ISREDIT HX .ZCSR  should work

this is command line
and there is Does not exist HX in command line (the command is 
hex on / hex off)


-- 


For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO 
IBM-MAIN



--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must 
stand
with anybody that stands right, and stand with him while he is 
right,

and part with him when he goes wrong. *Abraham Lincoln*/

-- 


For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO 
IBM-MAIN
-- 


For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO 
IBM-MAIN



--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him

Re: ispf edit macro "HX" line command

2021-09-09 Thread Carmen Vitullo
well, i conciser them line commands since I position my cursor on a line 
and use  'I', 'D', 'C' 'CC' 'RR' 'DD'.etc


Carmen

On 9/9/2021 1:57 PM, Seymour J Metz wrote:

ISREDIT commands and assignment statements like DELETE, INSERT, LABEL, 
LINE_AFTER, LINE_BEFORE and SHIFT foo are not line commands.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Thursday, September 9, 2021 1:55 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

I'll have to believe you didn't find it, but I've used edit line
commands in macros, like insert, repeat,copy, delete, and assign a label
to a line, range(s)

if I made an assumption HX is valid then that was a bad assumption


Carmen

On 9/9/2021 12:49 PM, Seymour J Metz wrote:

I checked Edit assignment statements" and "Chapter 11. Edit macro commands and 
assignment statements" in z/OS 2.4 ISPF Edit and Edit Macros,  SC19-3621-40, and couldn't 
find any way for an edit macro to issue a line command. What did you do with the variable CMD 
to treat its value as a line command?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Thursday, September 9, 2021 11:35 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

IIRC yes, then followed by an ISREDIT command to issue the line command,
but again without testing and having the time to test I'm not 100% sure

I made an assumption the OP had an alternate solution.

Carmen


On 9/9/2021 10:12 AM, Seymour J Metz wrote:

ISREDIT (CMD) = 'HX'  should work -I've not tested

Doesn't that just set the variable CMD to the VALUE HX?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Tuesday, September 7, 2021 10:12 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

Like I said I never used this line command, my syntax was not correct
but a quick check;

ISREDIT (CMD) = 'HX'  should work -I've not tested

you need to have the cursor positioned to where you need first.

I have some examples that position the cursor and perform some tasks but
none that would help you here

the IBM doc would be helpful for review

Carmen

On 9/5/2021 3:27 AM, Weizman arbel wrote:

I do not understand your response, you asked;

I asked about  line commnad


ISREDIT HX .ZCSR

There was a suggestion
and my response was
that is a line command And it does not work.
Sorry for the misunderstanding

I did not know the option
"quote original message"
and It's tapping me to comment





On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  wrote:


I do not understand your response, you asked;

there is a way to execute  "HX"  line command

>from edit macro ?

ISREDIT HX .ZCSR

- is a line command

now you are asking command line ?
so
ISREDIT (CMD) - 'HEX'

Carmen

On 9/2/2021 10:14 AM, Weizman arbel wrote:

ISREDIT HX .ZCSR  should work

this is command line
and there is Does not exist HX in command line (the command is hex on / hex off)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instruction

Re: ispf edit macro "HX" line command

2021-09-09 Thread Seymour J Metz
ISREDIT commands and assignment statements like DELETE, INSERT, LABEL, 
LINE_AFTER, LINE_BEFORE and SHIFT foo are not line commands.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Thursday, September 9, 2021 1:55 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

I'll have to believe you didn't find it, but I've used edit line
commands in macros, like insert, repeat,copy, delete, and assign a label
to a line, range(s)

if I made an assumption HX is valid then that was a bad assumption


Carmen

On 9/9/2021 12:49 PM, Seymour J Metz wrote:
> I checked Edit assignment statements" and "Chapter 11. Edit macro commands 
> and assignment statements" in z/OS 2.4 ISPF Edit and Edit Macros,  
> SC19-3621-40, and couldn't find any way for an edit macro to issue a line 
> command. What did you do with the variable CMD to treat its value as a line 
> command?
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> 
> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
> Carmen Vitullo [cvitu...@hughes.net]
> Sent: Thursday, September 9, 2021 11:35 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: ispf edit macro "HX" line command
>
> IIRC yes, then followed by an ISREDIT command to issue the line command,
> but again without testing and having the time to test I'm not 100% sure
>
> I made an assumption the OP had an alternate solution.
>
> Carmen
>
>
> On 9/9/2021 10:12 AM, Seymour J Metz wrote:
>>> ISREDIT (CMD) = 'HX'  should work -I've not tested
>> Doesn't that just set the variable CMD to the VALUE HX?
>>
>>
>> --
>> Shmuel (Seymour J.) Metz
>> http://mason.gmu.edu/~smetz3
>>
>> 
>> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
>> Carmen Vitullo [cvitu...@hughes.net]
>> Sent: Tuesday, September 7, 2021 10:12 AM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: Re: ispf edit macro "HX" line command
>>
>> Like I said I never used this line command, my syntax was not correct
>> but a quick check;
>>
>> ISREDIT (CMD) = 'HX'  should work -I've not tested
>>
>> you need to have the cursor positioned to where you need first.
>>
>> I have some examples that position the cursor and perform some tasks but
>> none that would help you here
>>
>> the IBM doc would be helpful for review
>>
>> Carmen
>>
>> On 9/5/2021 3:27 AM, Weizman arbel wrote:
>>>> I do not understand your response, you asked;
>>> I asked about  line commnad
>>>
>>>> ISREDIT HX .ZCSR
>>> There was a suggestion
>>> and my response was
>>> that is a line command And it does not work.
>>> Sorry for the misunderstanding
>>>
>>> I did not know the option
>>> "quote original message"
>>> and It's tapping me to comment
>>>
>>>
>>>
>>>
>>>
>>> On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  
>>> wrote:
>>>
>>>> I do not understand your response, you asked;
>>>>
>>>> there is a way to execute  "HX"  line command
>>> >from edit macro ?
>>>> ISREDIT HX .ZCSR
>>>>
>>>> - is a line command
>>>>
>>>> now you are asking command line ?
>>>> so
>>>> ISREDIT (CMD) - 'HEX'
>>>>
>>>> Carmen
>>>>
>>>> On 9/2/2021 10:14 AM, Weizman arbel wrote:
>>>>> ISREDIT HX .ZCSR  should work
>>>>>
>>>>> this is command line
>>>>> and there is Does not exist HX in command line (the command is hex on / 
>>>>> hex off)
>>>>>
>>>>> --
>>>>> For IBM-MAIN subscribe / signoff / archive access instructions,
>>>>> send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
>>>>>
>>>> --
>>>> /I am not bound to win, but I am bound to be true. I am not bound to
>>>> succeed, but I am bound to live by the light that I have. I must stand
>>>> with anybody that stands right, and stand with him while he is right,
>>>> and part with him when he goes wrong. *Abraham Lincoln*/
>>>&

Re: ispf edit macro "HX" line command

2021-09-09 Thread Seymour J Metz
Would you mind posting the code? Thanks.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Thursday, September 9, 2021 2:13 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

long before edit CUT and PASTE were readily available in ISPF I picked
up a rexx exec from some toolbox online, I don't recall where, but cut
and paste were a good example of using edit line commands in a macro


On 9/9/2021 12:49 PM, Seymour J Metz wrote:
> I checked Edit assignment statements" and "Chapter 11. Edit macro commands 
> and assignment statements" in z/OS 2.4 ISPF Edit and Edit Macros,  
> SC19-3621-40, and couldn't find any way for an edit macro to issue a line 
> command. What did you do with the variable CMD to treat its value as a line 
> command?
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> 
> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
> Carmen Vitullo [cvitu...@hughes.net]
> Sent: Thursday, September 9, 2021 11:35 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: ispf edit macro "HX" line command
>
> IIRC yes, then followed by an ISREDIT command to issue the line command,
> but again without testing and having the time to test I'm not 100% sure
>
> I made an assumption the OP had an alternate solution.
>
> Carmen
>
>
> On 9/9/2021 10:12 AM, Seymour J Metz wrote:
>>> ISREDIT (CMD) = 'HX'  should work -I've not tested
>> Doesn't that just set the variable CMD to the VALUE HX?
>>
>>
>> --
>> Shmuel (Seymour J.) Metz
>> http://mason.gmu.edu/~smetz3
>>
>> 
>> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
>> Carmen Vitullo [cvitu...@hughes.net]
>> Sent: Tuesday, September 7, 2021 10:12 AM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: Re: ispf edit macro "HX" line command
>>
>> Like I said I never used this line command, my syntax was not correct
>> but a quick check;
>>
>> ISREDIT (CMD) = 'HX'  should work -I've not tested
>>
>> you need to have the cursor positioned to where you need first.
>>
>> I have some examples that position the cursor and perform some tasks but
>> none that would help you here
>>
>> the IBM doc would be helpful for review
>>
>> Carmen
>>
>> On 9/5/2021 3:27 AM, Weizman arbel wrote:
>>>> I do not understand your response, you asked;
>>> I asked about  line commnad
>>>
>>>> ISREDIT HX .ZCSR
>>> There was a suggestion
>>> and my response was
>>> that is a line command And it does not work.
>>> Sorry for the misunderstanding
>>>
>>> I did not know the option
>>> "quote original message"
>>> and It's tapping me to comment
>>>
>>>
>>>
>>>
>>>
>>> On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  
>>> wrote:
>>>
>>>> I do not understand your response, you asked;
>>>>
>>>> there is a way to execute  "HX"  line command
>>> >from edit macro ?
>>>> ISREDIT HX .ZCSR
>>>>
>>>> - is a line command
>>>>
>>>> now you are asking command line ?
>>>> so
>>>> ISREDIT (CMD) - 'HEX'
>>>>
>>>> Carmen
>>>>
>>>> On 9/2/2021 10:14 AM, Weizman arbel wrote:
>>>>> ISREDIT HX .ZCSR  should work
>>>>>
>>>>> this is command line
>>>>> and there is Does not exist HX in command line (the command is hex on / 
>>>>> hex off)
>>>>>
>>>>> --
>>>>> For IBM-MAIN subscribe / signoff / archive access instructions,
>>>>> send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
>>>>>
>>>> --
>>>> /I am not bound to win, but I am bound to be true. I am not bound to
>>>> succeed, but I am bound to live by the light that I have. I must stand
>>>> with anybody that stands right, and stand with him while he is right,
>>>> and part with him when he goes wrong. *Abraham Lincoln*/
>>>>
>>>> --
>>>> For IBM-MAIN sub

Re: ispf edit macro "HX" line command

2021-09-09 Thread Carmen Vitullo
my explanation was lost in the post, but before CUT and PASTE were 
available in ISPF I picked up that rexx from some MVS toolkit, it has 
some examples of using edit line commands in an edit macro, from that 
example I have used the line command in other macros when needed.



Carmen

On 9/9/2021 1:13 PM, Carmen Vitullo wrote:
--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-09 Thread Carmen Vitullo
/* REXX ***/
/***  */
/*** ISPF/PDF edit macro to write lines from a file to the user   */
/*** PROFILE pool for later inclusion by the PASTE macro. */
/***  */
/*** To run:  */
/***  Enter CUT on the COMMAND line and use the C or M line commands  */
/***  (in any form) to select the lines to be cut.*/
/***  */
/***  If the M line command is used, the lines will be deleted.   */
/***  */
/***  A parameter of R or REPLACE can be specified to replace any */
/***  previously CUT lines (that have not yet been PASTEd) with the   */
/***  newly selected lines.  Otherwise, the selected lines will be*/
/***  added to any previously CUT lines.  */
/***  */
/***  An arbitrary limit of 1000 lines is set in the macro but this   */
/***  can be changed by providing a new limit on the macro call.  */
/***  For example, to process up to 2000 lines enter CUT 2000 on the  */
/***  COMMAND line.  Be aware that each line gets stored in your  */
/***  PROFILE.*/
/***  */
/**/
Trace
Address ISPEXEC
'ISREDIT MACRO (PARM1) NOPROCESS'
parm1 = translate(parm1)
If parm1 = '?' Then
  Do
Call help
Exit 
  End
 
If parm1 ^= ' ' & parm1 ^= 'R' & parm1 ^= 'REPLACE' Then
  Do
If datatype(parm1,w) = 1 & parm1 > 0 Then
  Do 
/* set new limit for maximum number of lines cut to profile */
cutlimit = parm1
'VPUT (CUTLIMIT) PROFILE'
  End
Else 
  Do 
zedsmsg = 'Invalid parameter'
msg = 'Use a whole number > 0, ? for help,'
zedlmsg = msg 'R or REPLACE to replace previous lines'
'SETMSG MSG(ISRZ001)'
Exit 12
  End
  End
 
/* Process line commands, check if C or M was specified  */
'ISREDIT PROCESS RANGE C M'
Select
  When rc = 0 Then
Do
  'ISREDIT (CMD) = RANGE_CMD'  /* Get the command*/
  'ISREDIT (LINE1) = LINENUM .ZFRANGE' /* Get first line in range*/
  'ISREDIT (LINE2) = LINENUM .ZLRANGE' /* Get last line in range */
  linestocut = line2 - line1 + 1
End
  When rc <= 4 Then /* No C or M entered */
Do
  zedsmsg = 'Enter "C"/"M" line cmd'
  zedlmsg = 'CUT requires a "C" or "M" line command'
  'SETMSG MSG(ISRZ001)'
  Exit 12
End
  Otherwise  /* Line command conflict - Edit will create message*/
Exit 12
End
 
/* Get the number of lines that have been cut but not pasted,*/
/* initialize to zero if first time. */
'VGET (CUTCNTMX) PROFILE'
If rc ^= 0 Then
  cutcntmx = 0
 
/* Get the maximum number of lines to be stored in the profile,  */
/* initialize to 1000 if first time. */
'VGET (CUTLIMIT) PROFILE'
If rc ^= 0 Then
  Do
cutlimit = 1000
'VPUT (CUTLIMIT) PROFILE'
  End
 
If parm1 = 'R' | parm1 = 'REPLACE' Then
  Do
If linestocut < cutcntmx Then
  Do 
/* delete variables that will not be overwritten */
'VGET (ZENVIR) SHARED'
Do i = 1 to cutcntmx by 1
  'VERASE (CL'i') PROFILE'
End
  End
cutcntmx = 0
  End
cutcntmxsave = cutcntmx
/* Check to see if the limit will be exceeded by storing the lines   */
/* into the profile. */
count = cutcntmx + linestocut
If count > cutlimit Then
  Do
zedsmsg = '> 'cutlimit 'lines to cut'
zedlmsg = 'Reduce the range or change limit with CUT 'count
'SETMSG MSG(ISRZ001)'
Exit 12
  End
 
 
/* cut the lines to the profile */
cutcnt = cutcntmx
Do i = line1 to line2
  cutcnt = cutcnt + 1
  'ISREDIT (CL'cutcnt') = LINE' i
 
  Interpret "CL"cutcnt"= Strip(CL"cutcnt",'T')"
 
  'VPUT (CL'cutcnt') PROFILE'
End
 
 
/* Put the number of lines cut into the profile for use by PASTE */
'VPUT (CUTCNT) PROFILE'
 
/* If the number of lines cut this time is greater than the maximum  */
/* cut, then save the new maximum.  PASTE will set this variable to  */
/* zero if it deletes the variables. */
If cutcnt > cutcntmx Then
  Do
cutcntmx = cutcnt
'VPUT (CUTCNTMX) PROFILE'
  End
 
If cmd = 'M' Then
  Do
'ISREDIT DELETE 'line1 line2
If cutcntmxsave = 0 Then
  Do 
zedsmsg = linestocut 'lines cut and deleted'
msg = 'lines were cut and deleted from the current file'
zedlmsg = linestocut msg
  

Re: ispf edit macro "HX" line command

2021-09-09 Thread Carmen Vitullo
I'll have to believe you didn't find it, but I've used edit line 
commands in macros, like insert, repeat,copy, delete, and assign a label 
to a line, range(s)


if I made an assumption HX is valid then that was a bad assumption


Carmen

On 9/9/2021 12:49 PM, Seymour J Metz wrote:

I checked Edit assignment statements" and "Chapter 11. Edit macro commands and 
assignment statements" in z/OS 2.4 ISPF Edit and Edit Macros,  SC19-3621-40, and couldn't 
find any way for an edit macro to issue a line command. What did you do with the variable CMD 
to treat its value as a line command?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Thursday, September 9, 2021 11:35 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

IIRC yes, then followed by an ISREDIT command to issue the line command,
but again without testing and having the time to test I'm not 100% sure

I made an assumption the OP had an alternate solution.

Carmen


On 9/9/2021 10:12 AM, Seymour J Metz wrote:

ISREDIT (CMD) = 'HX'  should work -I've not tested

Doesn't that just set the variable CMD to the VALUE HX?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Tuesday, September 7, 2021 10:12 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

Like I said I never used this line command, my syntax was not correct
but a quick check;

ISREDIT (CMD) = 'HX'  should work -I've not tested

you need to have the cursor positioned to where you need first.

I have some examples that position the cursor and perform some tasks but
none that would help you here

the IBM doc would be helpful for review

Carmen

On 9/5/2021 3:27 AM, Weizman arbel wrote:

I do not understand your response, you asked;

I asked about  line commnad


ISREDIT HX .ZCSR

There was a suggestion
and my response was
that is a line command And it does not work.
Sorry for the misunderstanding

I did not know the option
"quote original message"
and It's tapping me to comment





On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  wrote:


I do not understand your response, you asked;

there is a way to execute  "HX"  line command

>from edit macro ?

ISREDIT HX .ZCSR

- is a line command

now you are asking command line ?
so
ISREDIT (CMD) - 'HEX'

Carmen

On 9/2/2021 10:14 AM, Weizman arbel wrote:

ISREDIT HX .ZCSR  should work

this is command line
and there is Does not exist HX in command line (the command is hex on / hex off)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / 

Re: ispf edit macro "HX" line command

2021-09-09 Thread Seymour J Metz
I checked Edit assignment statements" and "Chapter 11. Edit macro commands and 
assignment statements" in z/OS 2.4 ISPF Edit and Edit Macros,  SC19-3621-40, 
and couldn't find any way for an edit macro to issue a line command. What did 
you do with the variable CMD to treat its value as a line command?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Thursday, September 9, 2021 11:35 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

IIRC yes, then followed by an ISREDIT command to issue the line command,
but again without testing and having the time to test I'm not 100% sure

I made an assumption the OP had an alternate solution.

Carmen


On 9/9/2021 10:12 AM, Seymour J Metz wrote:
>> ISREDIT (CMD) = 'HX'  should work -I've not tested
> Doesn't that just set the variable CMD to the VALUE HX?
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> 
> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
> Carmen Vitullo [cvitu...@hughes.net]
> Sent: Tuesday, September 7, 2021 10:12 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: ispf edit macro "HX" line command
>
> Like I said I never used this line command, my syntax was not correct
> but a quick check;
>
> ISREDIT (CMD) = 'HX'  should work -I've not tested
>
> you need to have the cursor positioned to where you need first.
>
> I have some examples that position the cursor and perform some tasks but
> none that would help you here
>
> the IBM doc would be helpful for review
>
> Carmen
>
> On 9/5/2021 3:27 AM, Weizman arbel wrote:
>>> I do not understand your response, you asked;
>> I asked about  line commnad
>>
>>> ISREDIT HX .ZCSR
>> There was a suggestion
>> and my response was
>> that is a line command And it does not work.
>> Sorry for the misunderstanding
>>
>> I did not know the option
>> "quote original message"
>> and It's tapping me to comment
>>
>>
>>
>>
>>
>> On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  
>> wrote:
>>
>>> I do not understand your response, you asked;
>>>
>>> there is a way to execute  "HX"  line command
>> >from edit macro ?
>>> ISREDIT HX .ZCSR
>>>
>>> - is a line command
>>>
>>> now you are asking command line ?
>>> so
>>> ISREDIT (CMD) - 'HEX'
>>>
>>> Carmen
>>>
>>> On 9/2/2021 10:14 AM, Weizman arbel wrote:
>>>> ISREDIT HX .ZCSR  should work
>>>>
>>>> this is command line
>>>> and there is Does not exist HX in command line (the command is hex on / 
>>>> hex off)
>>>>
>>>> --
>>>> For IBM-MAIN subscribe / signoff / archive access instructions,
>>>> send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
>>>>
>>> --
>>> /I am not bound to win, but I am bound to be true. I am not bound to
>>> succeed, but I am bound to live by the light that I have. I must stand
>>> with anybody that stands right, and stand with him while he is right,
>>> and part with him when he goes wrong. *Abraham Lincoln*/
>>>
>>> --
>>> For IBM-MAIN subscribe / signoff / archive access instructions,
>>> send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
>> --
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
>>
> --
> /I am not bound to win, but I am bound to be true. I am not bound to
> succeed, but I am bound to live by the light that I have. I must stand
> with anybody that stands right, and stand with him while he is right,
> and part with him when he goes wrong. *Abraham Lincoln*/
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the mes

Re: ispf edit macro "HX" line command

2021-09-09 Thread Carmen Vitullo
IIRC yes, then followed by an ISREDIT command to issue the line command, 
but again without testing and having the time to test I'm not 100% sure


I made an assumption the OP had an alternate solution.

Carmen


On 9/9/2021 10:12 AM, Seymour J Metz wrote:

ISREDIT (CMD) = 'HX'  should work -I've not tested

Doesn't that just set the variable CMD to the VALUE HX?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Tuesday, September 7, 2021 10:12 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

Like I said I never used this line command, my syntax was not correct
but a quick check;

ISREDIT (CMD) = 'HX'  should work -I've not tested

you need to have the cursor positioned to where you need first.

I have some examples that position the cursor and perform some tasks but
none that would help you here

the IBM doc would be helpful for review

Carmen

On 9/5/2021 3:27 AM, Weizman arbel wrote:

I do not understand your response, you asked;

I asked about  line commnad


ISREDIT HX .ZCSR

There was a suggestion
and my response was
that is a line command And it does not work.
Sorry for the misunderstanding

I did not know the option
"quote original message"
and It's tapping me to comment





On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  wrote:


I do not understand your response, you asked;

there is a way to execute  "HX"  line command

>from edit macro ?

ISREDIT HX .ZCSR

- is a line command

now you are asking command line ?
so
ISREDIT (CMD) - 'HEX'

Carmen

On 9/2/2021 10:14 AM, Weizman arbel wrote:

ISREDIT HX .ZCSR  should work

this is command line
and there is Does not exist HX in command line (the command is hex on / hex off)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-09 Thread Seymour J Metz
> ISREDIT (CMD) = 'HX'  should work -I've not tested

Doesn't that just set the variable CMD to the VALUE HX?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Carmen Vitullo [cvitu...@hughes.net]
Sent: Tuesday, September 7, 2021 10:12 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

Like I said I never used this line command, my syntax was not correct
but a quick check;

ISREDIT (CMD) = 'HX'  should work -I've not tested

you need to have the cursor positioned to where you need first.

I have some examples that position the cursor and perform some tasks but
none that would help you here

the IBM doc would be helpful for review

Carmen

On 9/5/2021 3:27 AM, Weizman arbel wrote:
>> I do not understand your response, you asked;
> I asked about  line commnad
>
>> ISREDIT HX .ZCSR
> There was a suggestion
> and my response was
> that is a line command And it does not work.
> Sorry for the misunderstanding
>
> I did not know the option
> "quote original message"
> and It's tapping me to comment
>
>
>
>
>
> On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  wrote:
>
>> I do not understand your response, you asked;
>>
>> there is a way to execute  "HX"  line command
> >from edit macro ?
>> ISREDIT HX .ZCSR
>>
>> - is a line command
>>
>> now you are asking command line ?
>> so
>> ISREDIT (CMD) - 'HEX'
>>
>> Carmen
>>
>> On 9/2/2021 10:14 AM, Weizman arbel wrote:
>>> ISREDIT HX .ZCSR  should work
>>>
>>> this is command line
>>> and there is Does not exist HX in command line (the command is hex on / hex 
>>> off)
>>>
>>> --
>>> For IBM-MAIN subscribe / signoff / archive access instructions,
>>> send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
>>>
>> --
>> /I am not bound to win, but I am bound to be true. I am not bound to
>> succeed, but I am bound to live by the light that I have. I must stand
>> with anybody that stands right, and stand with him while he is right,
>> and part with him when he goes wrong. *Abraham Lincoln*/
>>
>> --
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN
>
--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-07 Thread Lionel B. Dyck
My understanding of the OP's initial request was the ability to display a line 
in hex from within an edit macro, which is probably doing a lot more than just 
the hex display as it is very easy to do the HX on the line while in edit/view.

Unfortunately there are a very limited number of line command options while in 
edit - unfortunately none of the enhanced edit line commands.

This was my solution (reposting for fun) which can then be included in the OP's 
edit macro:

/* -- REXX - *  
 | ISPF Edit Macro to display the requested record in hex in |  
 | an infoline.  (Note: no validation is performed)  |  
 |   |  
 | Syntax:  EHEX line|  
 |   |  
 | Where EHEX is the macro name (change as you wish) |  
 |   line is a record number |  
 |   |  
 | Sample:  EHEX 4   |  
 * - */ 
  Address ISREdit   
  'Macro (line)'
  '(data) = line' line  
  hex = c2x(data)   
  parse value '' with hextop hexbot 
  do i = 1 to length(hex) by 2  
hextop = hextop''substr(hex,i,1)
hexbot = hexbot''substr(hex,i+1,1)  
  end   
  'line_after' line '= infoline (hexbot)'   
  'line_after' line '= infoline (hextop)'   


Lionel B. Dyck <><
Website: https://www.lbdsoftware.com
Github: https://github.com/lbdyck

“Worry more about your character than your reputation. Character is what you 
are, reputation merely what others think you are.”   - - - John Wooden

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Carmen Vitullo
Sent: Tuesday, September 7, 2021 9:13 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

Like I said I never used this line command, my syntax was not correct but a 
quick check;

ISREDIT (CMD) = 'HX'  should work -I've not tested

you need to have the cursor positioned to where you need first.

I have some examples that position the cursor and perform some tasks but none 
that would help you here

the IBM doc would be helpful for review

Carmen

On 9/5/2021 3:27 AM, Weizman arbel wrote:
>> I do not understand your response, you asked;
> I asked about  line commnad
>
>> ISREDIT HX .ZCSR
> There was a suggestion
> and my response was
> that is a line command And it does not work.
> Sorry for the misunderstanding
>
> I did not know the option
> "quote original message"
> and It's tapping me to comment
>
>
>
>
>
> On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  wrote:
>
>> I do not understand your response, you asked;
>>
>> there is a way to execute  "HX"  line command
> >from edit macro ?
>> ISREDIT HX .ZCSR
>>
>> - is a line command
>>
>> now you are asking command line ?
>> so
>> ISREDIT (CMD) - 'HEX'
>>
>> Carmen
>>
>> On 9/2/2021 10:14 AM, Weizman arbel wrote:
>>> ISREDIT HX .ZCSR  should work
>>>
>>> this is command line
>>> and there is Does not exist HX in command line (the command is hex 
>>> on / hex off)
>>>
>>> 
>>> -- For IBM-MAIN subscribe / signoff / archive access instructions, 
>>> send email tolists...@listserv.ua.edu  with the message: INFO 
>>> IBM-MAIN
>>>
>> --
>> /I am not bound to win, but I am bound to be true. I am not bound to 
>> succeed, but I am bound to live by the light that I have. I must 
>> stand with anybody that stands right, and stand with him while he is 
>> right, and part with him when he goes wrong. *Abraham Lincoln*/
>>
>> -
>> - For IBM-MAIN subscribe / signoff / archive access instructions, 
>> send email tolists...@listserv.ua.edu  with the message: INFO 
>> IBM-MAIN
> --
> For IBM-MAIN subscribe / signoff / archive access ins

Re: ispf edit macro "HX" line command

2021-09-07 Thread Carmen Vitullo
Like I said I never used this line command, my syntax was not correct 
but a quick check;


ISREDIT (CMD) = 'HX'  should work -I've not tested

you need to have the cursor positioned to where you need first.

I have some examples that position the cursor and perform some tasks but 
none that would help you here


the IBM doc would be helpful for review

Carmen

On 9/5/2021 3:27 AM, Weizman arbel wrote:

I do not understand your response, you asked;

I asked about  line commnad


ISREDIT HX .ZCSR

There was a suggestion
and my response was
that is a line command And it does not work.
Sorry for the misunderstanding

I did not know the option
"quote original message"
and It's tapping me to comment





On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  wrote:


I do not understand your response, you asked;

there is a way to execute  "HX"  line command

>from edit macro ?

ISREDIT HX .ZCSR

- is a line command

now you are asking command line ?
so
ISREDIT (CMD) - 'HEX'

Carmen

On 9/2/2021 10:14 AM, Weizman arbel wrote:

ISREDIT HX .ZCSR  should work

this is command line
and there is Does not exist HX in command line (the command is hex on / hex off)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to
succeed, but I am bound to live by the light that I have. I must stand
with anybody that stands right, and stand with him while he is right,
and part with him when he goes wrong. *Abraham Lincoln*/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email tolists...@listserv.ua.edu  with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-05 Thread Weizman arbel
>I do not understand your response, you asked;
I asked about  line commnad  

>ISREDIT HX .ZCSR
There was a suggestion
and my response was
that is a line command And it does not work.
Sorry for the misunderstanding

I did not know the option
"quote original message"
and It's tapping me to comment





On Thu, 2 Sep 2021 10:55:00 -0500, Carmen Vitullo  wrote:

>I do not understand your response, you asked;
>
>there is a way to execute  "HX"  line command
>from edit macro ?
>ISREDIT HX .ZCSR
>
>- is a line command
>
>now you are asking command line ?
>so
>ISREDIT (CMD) - 'HEX'
>
>Carmen
>
>On 9/2/2021 10:14 AM, Weizman arbel wrote:
>> ISREDIT HX .ZCSR  should work
>>
>> this is command line
>> and there is Does not exist HX in command line (the command is hex on / hex 
>> off)
>>
>> --
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>>
>--
>/I am not bound to win, but I am bound to be true. I am not bound to
>succeed, but I am bound to live by the light that I have. I must stand
>with anybody that stands right, and stand with him while he is right,
>and part with him when he goes wrong. *Abraham Lincoln*/
>
>--
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-02 Thread Carmen Vitullo

I do not understand your response, you asked;

there is a way to execute  "HX"  line command
from edit macro ?
ISREDIT HX .ZCSR

- is a line command

now you are asking command line ?
so
ISREDIT (CMD) - 'HEX'

Carmen

On 9/2/2021 10:14 AM, Weizman arbel wrote:

ISREDIT HX .ZCSR  should work

this is command line
and there is Does not exist HX in command line (the command is hex on / hex off)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-02 Thread Seymour J Metz
ISPF does not have an equivalent to SET PENDING in XEDIT.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Weizman arbel [wwar...@gmail.com]
Sent: Thursday, September 2, 2021 7:35 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: ispf edit macro "HX" line command

hi,
there is a way to execute  "HX"  line command
from edit macro ?

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-02 Thread Weizman arbel
ISREDIT HX .ZCSR  should work

this is command line 
and there is Does not exist HX in command line (the command is hex on / hex off)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-02 Thread Weizman arbel
So I understand it's impossible

execute "HX" line command from 

edit macro 

I know the way to do it myself in the code

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-02 Thread Carmen Vitullo
you can use the HX command, like a shift ( ) or a I (insert) the result 
is that one line in HEX format. I don't know what the reasoning is for 
turning on HEX for one line but it is possible.


ISREDIT HX .ZCSR  should work, I don't have time to test but the OP can


Carmen

On 9/2/2021 9:24 AM, Lionel B. Dyck wrote:

You can turn HEX ON or OFF in an Edit macro but you can't do it for a specific 
record.  You can do it yourself in your edit macro and insert the hex info as a 
note or message line below the real record.

I cobbled this together - it is a quick/dirty example of an edit command that 
will add message lines below the request line with the hex values in a vertical 
format:

/* rexx */
Address ISREdit
'Macro (line)'
'(data) = line' line
hex = c2x(data)
parse value '' with hextop hexbot
do i = 1 to length(hex) by 2
   hextop = hextop''substr(hex,i,1)
   hexbot = hexbot''substr(hex,i+1,1)
end
'line_after' line '= infoline (hexbot)'
'line_after' line '= infoline (hextop)'

The results of using it with EHEX 3  -  I named my test macro ehex 

03   'Macro (line)'
== 447D889944989857444
== 00D413960D3955DD000
04   '(data) = line' line
05   hex = c2x(data)

Hope this helps

Lionel B. Dyck <><
Website: https://www.lbdsoftware.com
Github: https://github.com/lbdyck

“Worry more about your character than your reputation. Character is what you 
are, reputation merely what others think you are.”   - - - John Wooden

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Richards, Robert B. (CTR)
Sent: Thursday, September 2, 2021 7:50 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

Can you tell us what you are trying to accomplish?

That may help us determine if HX is the best way or the use of HEX ON and 
proceeding to use ISREDIT commands from there.

Bob

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Weizman arbel
Sent: Thursday, September 2, 2021 7:36 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: ispf edit macro "HX" line command

hi,
there is a way to execute  "HX"  line command from edit macro ?

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-02 Thread Lionel B. Dyck
You can turn HEX ON or OFF in an Edit macro but you can't do it for a specific 
record.  You can do it yourself in your edit macro and insert the hex info as a 
note or message line below the real record.

I cobbled this together - it is a quick/dirty example of an edit command that 
will add message lines below the request line with the hex values in a vertical 
format:

/* rexx */   
Address ISREdit  
'Macro (line)'
'(data) = line' line 
hex = c2x(data)  
parse value '' with hextop hexbot
do i = 1 to length(hex) by 2 
  hextop = hextop''substr(hex,i,1)   
  hexbot = hexbot''substr(hex,i+1,1) 
end  
'line_after' line '= infoline (hexbot)'   
'line_after' line '= infoline (hextop)'   

The results of using it with EHEX 3  -  I named my test macro ehex 

03   'Macro (line)'   
== 447D889944989857444
== 00D413960D3955DD000
04   '(data) = line' line 
05   hex = c2x(data)  

Hope this helps

Lionel B. Dyck <><
Website: https://www.lbdsoftware.com
Github: https://github.com/lbdyck

“Worry more about your character than your reputation. Character is what you 
are, reputation merely what others think you are.”   - - - John Wooden

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Richards, Robert B. (CTR)
Sent: Thursday, September 2, 2021 7:50 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ispf edit macro "HX" line command

Can you tell us what you are trying to accomplish?

That may help us determine if HX is the best way or the use of HEX ON and 
proceeding to use ISREDIT commands from there.

Bob

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Weizman arbel
Sent: Thursday, September 2, 2021 7:36 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: ispf edit macro "HX" line command

hi,
there is a way to execute  "HX"  line command from edit macro ?

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-02 Thread Richards, Robert B. (CTR)
Can you tell us what you are trying to accomplish?

That may help us determine if HX is the best way or the use of HEX ON and 
proceeding to use ISREDIT commands from there.

Bob

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Weizman arbel
Sent: Thursday, September 2, 2021 7:36 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: ispf edit macro "HX" line command

hi,
there is a way to execute  "HX"  line command from edit macro ?

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: ispf edit macro "HX" line command

2021-09-02 Thread Carmen Vitullo
I don't have any example, I've never used the hex line command but I bet 
if you can use a shift left or right line command you can use the HX 
line command.


after setting your cursor to the required line

ISREDIT HX .ZCSR - 'MAY' work


Carmen


On 9/2/2021 6:35 AM, Weizman arbel wrote:

hi,
there is a way to execute  "HX"  line command
from edit macro ?

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
/I am not bound to win, but I am bound to be true. I am not bound to 
succeed, but I am bound to live by the light that I have. I must stand 
with anybody that stands right, and stand with him while he is right, 
and part with him when he goes wrong. *Abraham Lincoln*/


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


ispf edit macro "HX" line command

2021-09-02 Thread Weizman arbel
hi,
there is a way to execute  "HX"  line command 
from edit macro ?

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN