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 "<x><yymmdd><n>" where <x> is a constant, <yymmdd> is 
today's date and <n> is some character that the program will increment until it 
finds a name that isn't already being used.

That can be a subroutine, to be called and used for output after the output has 
been prepared.

---
Bob Bridges, [email protected], cell 336 382-7313

/* The modern state, no matter how "liberal" or "democratic," is a gigantic 
mass.  It isn't necessarily an improvement over small tribes, from which the 
individual can at least hope to escape.  Better a checkered world than a 
monolithic one.   -Joseph Sobran */

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Hobart Spitz
Sent: Monday, February 6, 2023 21:19

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 that have issued ADDRESS ISREDIT 
MACRO which establishes the edit macro environment.

I would Google "ispf edit macro example".

--- On Monday, February 6, 2023, Radoslaw Skorupka < 
[email protected]> wrote:
> 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 text from the TEMPLATE member.
>
> Any clue?
> Or some similar script to learn by example?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to