Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

CLIST & REXX :: RE: REXX DB2: Dynamic allocation of DB2.DSNLOAD

$
0
0
Author: Pedro
Subject: Reply to: REXX DB2: Dynamic allocation of DB2.DSNLOAD
Posted: Wed Dec 21, 2016 10:56 pm (GMT 5.5)

Quote:
but 3rd command is asking for a 8 bytes long DSN(CLIST) name.


The 'asking' part is not clear to me. Can you post the messages that you receive?

Your stated requirement is to allocate dynamically. Your steps 1 & 2 do that. Step 3 tries to go beyond allocating and to actually invoke DB2. It is your invocation of DB2 that is not correct.

I think you need to provide the parameters that DB2 needs to start. Something like this (untested):
Code:
QUEUE 'RUN PROGRAM(mydb2prog) PLAN(mydb2plan)'     
QUEUE 'END'           
Address ispexec ,
    'SELECT CMD(DSN SYSTEM(DB2A)) '

_________________
Pedro Vera


Viewing all articles
Browse latest Browse all 9405