Page 1 of 1

REXX DB2: Dynamic allocation of DB2.DSNLOAD

Posted: Sat Dec 17, 2016 3:09 pm
by BHAS
Hi,

I have a requirement to allocate DB2.DSNLOAD dynamically. I have found this piece of code to connect REXX with DB2. First 2 commands are working fine but 3rd command is asking for a 8 bytes long DSN(CLIST) name. But I don't know what it will be. Can anyone help me on this ?

1. ADDRESS TSO "ALLOC FI(TRGLLIB) DS(''XXDB2.DSNLOAD')"

2. ADDRESS ISPEXEC " LIBDEF ISPLLIB LIBRARY ID(TRGLLIB) UNCOND STACK"

3. ADDRESS ISPEXEC "SELECT CMD(DSN)"


I have connected the DB2 using ALLOCATE DSNLOAD in ready prompt but this not what I want.