Does anyone have a cookbook suggestion on how I can trigger jobs into CAWA DE from an array, looping through the line items creating servername variables for each line item in the text file?
Basically from the data below I want to create a variable %(APPL.servername), then pass it into a command line JOB with %(APPL.servername) in the path.
ie.. \\%(APPL.servername)\c:\path
This is the format of the raw csv file:Server=00101111SR01,Concept=xx,Corpcode=001,TZ=EASTERN
Server=00102222SR01,Concept=xx,Corpcode=001,TZ=EASTERN
Server=00103333SR01,Concept=xx,Corpcode=001,TZ=EASTERN
Here is a text file with servername stripped out:00101111SR01
00102222SR01
00103333SR01
If you want to really show-off your java scripting skills I know the raw csv file can be used where you select the substr of (7,11) to create the servername variable. My java scripting skills aren't there yet, but I know it can be done. Anyway, I wrote a powershell script to extract the items in the text file if anyone is interested in that I can share. My struggle is turning this information into job's. The max number of lines in the files will only be around 30 servers, nothing too crazy. Thanks for any input.
I found File-Level Function file_read and file_readlines, but I haven't found any good examples of what I'm trying to do.
------------------------------
Ken Ski
------------------------------