Re: ISPF macro/script

2023-02-09 Thread Willy Jensen
It will work, that is how I usually do it. And so will this: "line_after .zl = 'this is a new line'" "line_after .zl = ' and so is this '" Though I prefer to assigh the value to a variable and then use that, mostly because it is easier to handle quotes and complex strings that way. -

Re: ISPF macro/script

2023-02-08 Thread Paul Gilmartin
On Thu, 9 Feb 2023 01:27:25 +, Jeremy Nicoll wrote: >On Tue, 7 Feb 2023, at 16:40, Paul Gilmartin wrote: >... >> address ISREDIT "line_after .zl = (TemplateLine.L)" > >Yes, but the only fractionally different > >do L = 1 to TemplateLine.0 >newline = TemplateLine.L >

Re: ISPF macro/script

2023-02-08 Thread Jeremy Nicoll
On Tue, 7 Feb 2023, at 16:40, Paul Gilmartin wrote: > For some chores similar to this it's a crying shame that ISPF shuns > compound symbols: > > /* Suppose the content to insert is in stem TemplateLine. */ > do L = 1 to TemplateLine.0 > address ISREDIT "line_after .zl = (Template

Re: ISPF macro/script

2023-02-07 Thread Radoslaw Skorupka
Gentlemen, Thank you for your help. Both on list, and off list. I appreciate it. I have read the examples and I'm going to implement it. Regards -- Radoslaw Skorupka Lodz, Poland -- For IBM-MAIN subscribe / signoff / archive ac

Re: ISPF macro/script,

2023-02-07 Thread Seymour J Metz
I would expect an RFE for compound ISPF variable names to also request long names. From: IBM Mainframe Discussion List on behalf of Schmitt, Michael Sent: Tuesday, February 7, 2023 12:32 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ISPF macro/script

Re: ISPF macro/script,

2023-02-07 Thread Seymour J Metz
. From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Tuesday, February 7, 2023 12:31 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ISPF macro/script, On Tue, 7 Feb 2023 16:48:29 +, Seymour J Metz

Re: ISPF macro/script,

2023-02-07 Thread Schmitt, Michael
From: IBM Mainframe Discussion List On Behalf Of Seymour J Metz Sent: Tuesday, February 7, 2023 10:48 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Fw: ISPF macro/script, ISPF compound variables would cause problems for CLIST, EXEC and EXEC2, but that might not be a bad thing

Re: ISPF macro/script,

2023-02-07 Thread Paul Gilmartin
On Tue, 7 Feb 2023 16:48:29 +, Seymour J Metz wrote: >ISPF compound variables would cause problems for CLIST, EXEC and EXEC2, but >that might not be a bad thing. RFE? > I would not presume to suggest that the syntax of ISPF variables be extended; rather the relatively modest extension to scri

Fw: ISPF macro/script,

2023-02-07 Thread Seymour J Metz
uary 7, 2023 11:40 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ISPF macro/script On Tue, 7 Feb 2023 04:03:59 -0600, Willy Jensen wrote: >... > /* Insert template */ > s='Template line 1' > "line_after .zl = (s)" > s='Template line 2' > "line_af

Re: ISPF macro/script

2023-02-07 Thread Paul Gilmartin
On Tue, 7 Feb 2023 04:03:59 -0600, Willy Jensen wrote: >... > /* Insert template */ > s='Template line 1' > "line_after .zl = (s)" > s='Template line 2' > "line_after .zl = (s)" > > and so on and so forth > For some chores similar to this it's a crying shame that ISPF shuns com

Re: ISPF macro/script

2023-02-07 Thread Willy Jensen
If it is a short template then you can insert the lines from the macro. Replace the COPY command with /* Insert template */ s='Template line 1' "line_after .zl = (s)" s='Template line 2' "line_after .zl = (s)" and so on and so forth ---

Re: ISPF macro/script

2023-02-07 Thread Willy Jensen
I think this is the shortest sample I can come up with. It generates first or next membername for the day, then edits that member using itself as edit macro. The edit macro part copies the template and saves the member. Remove the 'CANCEL' command to stay in edit. The command can be executed fro

Re: ISPF macro/script

2023-02-06 Thread Bob Bridges
I think there's a misunderstanding about "selecting" the member. If I read Radek correctly, the program is to pick out a name that does ~not~ refer to an already existing member, and use that for the output. That's not hard; the member name will be "" where is a constant, is today's date an

Sv: ISPF macro/script

2023-02-06 Thread Lars Höglund
ER.1 = 'An error has occurred in Rexx module:' me ER.2 = ' Error Type:' trap_condition ER.3 = ' Error Line Number :' trap_linenumber ER.4 = ' Instruction :' trap_line ER.5 = ' Return Code :' trap_rc ER.6 = ' Err

Sv: ISPF macro/script

2023-02-06 Thread Lars Höglund
Look at Marc Zelden's EDMACALL //Lasse -Ursprungligt meddelande- Från: IBM Mainframe Discussion List För Hobart Spitz Skickat: den 7 februari 2023 03:19 Till: IBM-MAIN@LISTSERV.UA.EDU Ämne: Re: ISPF macro/script You have these options: 1 - Select the member manually, and invoke

Re: ISPF macro/script

2023-02-06 Thread Hobart Spitz
You have these options: 1 - Select the member manually, and invoke your REXX edit macro. 2 - Write another module the invokes the edit service in the library and member, and runs the edit macro. 3 - Write one dual mode module. I do not recommend this. Edit commands are only valid in REXX EXECs th

ISPF macro/script

2023-02-06 Thread Radoslaw Skorupka
To be honest ISPF & REXX is not my strong point. I need the following: From PDS(E) member list I type my CMD1, hit ENTER - to start the REXX script. The script Select new member (name generated from date+consecutive character), then issue some edit commands, like COPY TEMPLATE to copy some tex