Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allocate new _empty_ Member

Status
Not open for further replies.

danielte

Programmer
Nov 19, 2007
2
DE
Hello

i searched the forum for an answer but with no success...

Hopefully you can help me:

I want to allocate an empty Member with RexX.
The Dataset is already existing, but i need to create an empty Member in it.

exampel:

my.data.set
my.data.set(emptymember)

Its important for me, that no line is filled in it! How can i do this without inserting a line with a Space ot something like this?

Thanks for yout assistance!
Dan
 
Code:
//LOAD    EXEC PGM=IEBGENER
//SYSIN    DD DUMMY
//SYSPRINT DD DUMMY
//SYSUT1   DD DUMMY
//SYSUT@   DD DISP=SHR,DSN=MY.DATA.SET(EMPTYMBR)

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Use ISPF EDIT to create the empty member with an EDIT Macro:

The exec:
/* REXX */
"ISPEXEC EDIT DATASET('pds(member)') MACRO(macroname)"

The macro:
/* REXX */
"ISREDIT MACRO"
"ISREDIT SAVE"
"ISREDIT END"
 
Or, use a TSO EDIT session:

/* REXX */
Queue "END SAVE"
Queue ""
"EDIT 'pds(member)' NEW DATA EMODE"
 
Thank you very much it works!
I use the solution from kevinpink.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top