Question & Answer
Question
How do I use %PNUM to create a unique dataset name? (SCI84790)
Cause
Answer
First you will need to assemble and link DMPALLOC found in your $CD.SAMPLIB. Be sure you assemble and link it like any other Stage 2 exit. Specify ALLOCATION.EXIT=exitname in your Connect:Direct Initialization Parameters and cycle Connect:Direct. Code a process to use %PNUM see sample below.
PNUMBER PROCESS SNODE=REMOTE.NODE -
&NUM = %PNUM
STEP01 COPY -
FROM ( PNODE -
DSN=FRM.DSN.NAMES -
DISP=SHR) -
TO (DSN=HLQ1.TEST.T || &NUM -
DISP=RPL)
Historical Number
PRI28554
Product Synonym
[<p><b>]Fact[</b><p>];[<p>]Connect:Direct for z/OS, All Releases [<br />] SCI84790[</p>];[<p><b>]Goal[</b><p>];[<p>]FAQ: How do I use %PNUM to create a unique dataset name?[</p>]
Was this topic helpful?
Document Information
Modified date:
17 December 2019
UID
swg21533357