I have tested your carla and looks like my zSecure release assigns correct value of complex. Didn't see the issue. Worth to mention that ddname is the same for all records.
In my rule sets I just select my custom deftype and var1 for verification. But I do not assign complex value or select it
Original Message:
Sent: Thu October 30, 2025 04:23 AM
From: Rob van Hoboken
Subject: Multiple allocation of datasets
I understand you cannot share the code of your STANDARD X1, but can you show at least how you use the value of VAR1 in your TEST commands?
Also, test if your release of zSecure assigns the correct value of COMPLEX to the DEFTYPE newlist. Please add right below the DEFINE for VAR1:
newlist type=custom_alloc
list ddname recno complex var1
------------------------------
Rob van Hoboken
Original Message:
Sent: Wed October 29, 2025 10:42 AM
From: Viktorija Kulbaciauskiene
Subject: Multiple allocation of datasets
Hello Rob,
When I go with program CKRCARLA, and allocate 2 ckfreezes, 2 unloads and 2 custom datasets, like below:
I receive 0 test total for the first complex, and the results are fine for the second complex. It doesn't matter, whether I use PDSE or PDS
alloc type=CKFREEZE DD=FREEZE1 complex=COMPLEX1 alloc type=CKFREEZE DD=FREEZE2 complex=COMPLEX2 alloc type=UNLOAD DD=UNLOAD1 complex=COMPLEX1 alloc type=UNLOAD DD=UNLOAD2 complex=COMPLEX2 DEFTYPE TYPE=CUSTOM_ALLOC NOWARNalloc type=CUSTOM_ALLOC DSN=MYDATA.SET1(MEMBER) complex=COMPLEX1 alloc type=CUSTOM_ALLOC DSN=MYDATA.SET2(MEMBER) complex=COMPLEX2 DEFINE TYPE=CUSTOM_ALLOC var1 as substr(record,1,10)STANDARD X1some carla codeENDSTANDARD X1N TYPE=COMPLIANCE_RULE_SET NOPAGE SORTLIST RULE_SET, COMPLEX(0), TEST_TOTALÆ
------------------------------
Viktorija Kulbaciauskiene
Original Message:
Sent: Tue October 28, 2025 07:11 AM
From: Rob van Hoboken
Subject: Multiple allocation of datasets
Hi Viktorija,
just tested with zSecure 3.1 and I was pleasantly surprised how well the DEFTYPE capabilities support specification of COMPLEX on the ALLOC statement. Look below, I have JCL with 2 separate CUST files, I have 2 RACF input sources, and I attempt a lookup from the PROFILE field to a value from the CUST dd, hoping that it uses the right CUST file:
// JCLLIB ORDER=(SYS3.ZSEC.CKRPARM,SYS1.SCKRPROC)
// EXEC C2RC
//CUST1 DD *
IBMUSER aaaa
//CUST2 DD *
IBMUSER bbbb
//SYSIN DD *
alloc type=unload dsn=sys3.zsec.unload(0) complex=in1
alloc type=racf backup complex=in2
deftype type=@cust
alloc type=@cust dd=cust1 complex=in1
alloc type=@cust dd=cust2 complex=in2
define type=@cust key as word(record,1)
define type=@cust val as word(record,2)
newlist type=@cust
list complex record
newlist type=racf
s key=ibmuser
sortlist complex profile(8) profile:@cust.key.val
//
Guess, what, the value COMPLEX in the DEFTYPE newlist actually matches the value from the ALLOC command, and the lookup also takes into account the COMPLEX:
I B M S e c u r i t y z S e
IN1 IBMUSER aaaa
IN2 IBMUSER bbbb
P R O F I L E L I S T I N G
Complex Profile VAL
IN1 IBMUSER aaaa
IN2 IBMUSER bbbb
********************************
Note, I only tested this with newlist type=racf, but it should work for all newlists that have a COMPLEX value defined. Can you be more specific about the issues you're faced with when you run JCL? Does my sample work for you, with the zSecure version you have installed?
------------------------------
Rob van Hoboken
Original Message:
Sent: Mon October 27, 2025 04:46 AM
From: Viktorija Kulbaciauskiene
Subject: Multiple allocation of datasets
Hello everyone,
I'm looking for a way to read PDS or PDSE datasets with CARLA and JCL script.
Currently I have allocated CKFREEZE and UNLOAD
alloc type=CKFREEZE DD=FREEZE1 complex=COMPLEX1
alloc type=CKFREEZE DD=FREEZE2 complex=COMPLEX2
alloc type=UNLOAD DD=UNLOAD1 complex=COMPLEX1
alloc type=UNLOAD DD=UNLOAD2 complex=COMPLEX2
Also I need to add my custom datasets with it's member:
alloc type=CUSTOM_ALLOC DSN=MYDATA.SET1(MEMBER) complex=COMPLEX1
alloc type=CUSTOM_ALLOC DSN=MYDATA.SET2(MEMBER) complex=COMPLEX2
I face issues when I run JCL with newlist type compliance and/or compliance_rule_set
Are there any way to add a multiple custom datasets? Member name is always the same, only the dataset would vary
------------------------------
Viktorija Kulbaciauskiene
------------------------------