Search found 31 matches
- Wed Jul 06, 2016 6:23 am
- Forum: General
- Topic: What's the best method to write complex derivations?
- Replies: 18
- Views: 10875
However, multi-statement blocks are not available in expressions; indeed no form of statement is available in an expression. Alright, so that clears it as far complex derivation is concerned in a single expression cell. Disappointing but that's what it is. I continue to maintain that your example c...
- Tue Jul 05, 2016 8:48 am
- Forum: General
- Topic: What's the best method to write complex derivations?
- Replies: 18
- Views: 10875
No, complex expressions are OK in DataStage BASIC But routines written in BASIC are not available in parallel jobs, except with BASIC Transformer and we already discussed that I believe. However, in a derivation expression things are different. You're right that you cannot assign work variables (us...
- Thu Jun 30, 2016 9:46 am
- Forum: General
- Topic: Get input field name?
- Replies: 2
- Views: 2240
Get input field name?
Hi all, In a transformer stage, is there a way to get the input field name as well as its value dynamically? For example, in a stage variable, using a custom routine, I could do something like this: myStageVar = myCustomRoutine(inputLinkFieldName, inputFieldNameValue) Is this something that's possib...
- Thu Jun 30, 2016 9:11 am
- Forum: General
- Topic: What's the best method to write complex derivations?
- Replies: 18
- Views: 10875
- Fri Jun 10, 2016 6:54 am
- Forum: General
- Topic: Dynamic array notation in sequences
- Replies: 14
- Views: 7715
I seem to recall you were thrown directly into the deep end of the pool? Meaning, self-learning from the documentation, experimentation and silly places like this? Anyway, not sure how far you want to take this. Any interest in pursuing the Server job and USERSTATUS solution? Or have we beaten this...
- Thu Jun 09, 2016 12:16 pm
- Forum: General
- Topic: Dynamic array notation in sequences
- Replies: 14
- Views: 7715
- Thu Jun 09, 2016 11:51 am
- Forum: General
- Topic: Dynamic array notation in sequences
- Replies: 14
- Views: 7715
Yes, the info is taken from a table then in the job, I append two files with the info: First file is a parameter set value file and the second file contains only the value, all done in part via the transformer stage loop condition. So my PS value file looks like this: name1=value1 name2=value2 name3...
- Thu Jun 09, 2016 9:40 am
- Forum: General
- Topic: Dynamic array notation in sequences
- Replies: 14
- Views: 7715
Nowadays you should be looking into Parameter Sets, specifically with the concept of Value Files they added a number of years ago. Did we have this conversation already? :wink: Indeed we did. But here's an example where I believe parameter sets and value files won't work: Notification activity stag...
- Thu Jun 09, 2016 8:33 am
- Forum: General
- Topic: Dynamic array notation in sequences
- Replies: 14
- Views: 7715
It all goes back to my first inquiry on passing info from job to job in a sequence. I find the whole process extremely convoluted with Datastage: Write file with info needed for next job Read file with execute command stage Convert @FM in $CommandOutput Use Field function to get value needed for nex...
- Thu Jun 09, 2016 7:10 am
- Forum: General
- Topic: Dynamic array notation in sequences
- Replies: 14
- Views: 7715
Dynamic array notation in sequences
User chulett wrote this at one point: Another option, since the results are returned in a dynamic array, is to use array notation. That can help simplify things if you ever need to return something other than the first item in a list of returned values. Execute_Command_1.$CommandOutput<1> Can somebo...
- Tue May 17, 2016 11:25 am
- Forum: General
- Topic: Parameter sets, value files and sequence compilation
- Replies: 9
- Views: 3795
And you can always inline the Field function to get the value in your example: Field(Field($CommandOutput,'|',1,1),'=',2,1) Forgive me if the syntax isn't exactly correct, working from memory here, but you basically take the first field from a pipe delimited string and then from that take the secon...
- Tue May 17, 2016 9:07 am
- Forum: General
- Topic: Parameter sets, value files and sequence compilation
- Replies: 9
- Views: 3795
- Tue May 17, 2016 8:17 am
- Forum: General
- Topic: Parameter sets, value files and sequence compilation
- Replies: 9
- Views: 3795
- Tue May 10, 2016 8:45 am
- Forum: General
- Topic: Parameter sets, value files and sequence compilation
- Replies: 9
- Views: 3795
Well, I fixed the compilation problem. Apparently, I misinterpreted how to use parameter set value files. I thought that the value file was where I put the parameters and that each value file could have different parameters. Looks like I have to add the parameters in the parameter set and all value ...
- Mon May 09, 2016 6:22 pm
- Forum: General
- Topic: Parameter sets, value files and sequence compilation
- Replies: 9
- Views: 3795
Ray, It is PS_1.param1, it's a typo on my part in the original post. I'll fix the post. As for PS_1 set, it is added in the sequence and jobs as well already. So why the compile error? The sequence will know the name of the value file only when it's passed as a parameter with dsjob since it looks I ...