Thanks for the input Jeroen.
I am currently doing something similar to what you suggested (below) and am able to get a desirable outcome. This is fine if I am using a CSV formatted output, or if  I use a forced header length for one of the values and nothing for the other. I was just hoping for something a bit cleaner and eliminate the need for for both references. I will give the intermediate file reference a try, or maybe its time to just make the CSDATA consistent for all IDs. 
acl:#hrfile.#hrid.#hrname(0)
| owner:#hrfile.#hrid.#hrname(0)
forced header length
acl:#hrfile.#hrid.#hrname(0,"")
| owner:#hrfile.#hrid.#hrname(0,"Name                                    ")
------------------------------
Eli Perkins
------------------------------
                                                
					
                                                    
        
                                                
				
                                                
                                                Original Message:
Sent: Fri September 12, 2025 11:05 AM
From: Jeroen Tiggelman
Subject:  Defining a lookup variable based on presence of CSDATA field value for ACL.
Hi Eli,
I cannot think of a way of doing that.
If you want this data as a last column in a printed report, you might use two DEFINEd variables with WHERE clauses for which only one is true at a time, and print them with overriding length 0 and concatenated (field1(0) | field2(0)).
Otherwise, you might use such a method to populate an intermediate file to do a lookup from the ID to the (potentially) alternate ID.
Regards
------------------------------
Jeroen Tiggelman
IBM - Software Development Manager IBM zSecure
Delft
Original Message:
Sent: Thu September 11, 2025 03:27 PM
From: Eli Perkins
Subject: Defining a lookup variable based on presence of CSDATA field value for ACL.
I have many Access reports where I like to pull in HR data from a Dataset and map fields to the user in the access report. In order to do this properly I need to be able to map to the correct value. For example if it is a normal human User's single sign-on ID I can simply map to it like acl:#hrfile.#hrid.#hrname (Where #hrfile is a deftype and #hrid and #hrname are defined fields from it). However if this is a Service Account I want to map this to the Owner of the ID which I can Find in CSDATA field OWNER. What I would like to do is define an variable (Call it @MAPUSR) that is acl:OWNER if that CSDATA field is populated, or simply the ACLID if it is not. This would allow me to map back to HR dataset information using @MAPUSR as a lookup. @MAPUSR.#hrfile.#hrid.#hrname. The few ways I have tried to do this I have received errors, Is this possible?
------------------------------
Eli Perkins
------------------------------