- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536.1K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.6K Security Software
custom jython script to access DLR in batch
I have a batch definition with 2 data load rules as the batch's jobs.
My first DLR maps all source to target values
My second DLR ignores all source to target values
The first DLR successfully completes, the second DLR does not. This is fine, I want this behaviour.
I want to check though that the second DLR is failing for the reasons I want it to fail, and not something else.
I have an after batch script I execute. Is there a way I can get this script to access information in just the second DLR? I don't really want to scan the log files for strings, as I think there might be a more efficient way. I have a little script at the moment (below) that gets the batch LOADID and writes it to a text file. I'd like to be able to access the second DLR though with LOADID, as it will be equal to the LOADID of the batch + 2, but I'm not sure how to do this. Any help would be much appreciated!
test_file = open('file_1.txt', 'w+')
data = str(fdmContext["LOADID"])