Search found 9 matches

by elinzeyjr
Tue Aug 22, 2017 2:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Create a record if entry for a key field does not exist
Replies: 4
Views: 4403

This was very helpful. Thank you again.
by elinzeyjr
Sat Aug 12, 2017 7:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Create a record if entry for a key field does not exist
Replies: 4
Views: 4403

Create a record if entry for a key field does not exist

I have a requirement to make sure there are 3 records for each key fields in an output table regardless of how many come in from the input file. There are 3 types of records for each account. Types are ABC, DEF, GHI. The Account field is the key field. Example: Input File Layout - Account,Type,amoun...
by elinzeyjr
Tue Jul 11, 2017 2:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage CFF component converting ! to ] in char field
Replies: 1
Views: 2048

Datastage CFF component converting ! to ] in char field

Hello Everyone. I have a requirement to take a file which is ftp'd from the mainframe (os390) to our unix server and load it into greenplum. The job consists of : complex flat file component -----> transformer -----> GP connector. The file consists of hex, packed, and ascii data that is why it is ft...
by elinzeyjr
Thu Jun 22, 2017 6:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Set user variable from SQL Query result set to be used later
Replies: 5
Views: 6042

Thank You all for your responses. This was a great help.
by elinzeyjr
Wed Jun 21, 2017 2:47 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Update field in key when there is a match else then Insert
Replies: 1
Views: 2440

Update field in key when there is a match else then Insert

I have a requirement to read in a mainframe flat file, use two fields from the source record to see if a record with that key exists on the target greenplum table where the column END_EFF_DT = '9999-12-31'. If it exists, I need to update the target record and set the END_EFF_DT field to the value in...
by elinzeyjr
Wed May 17, 2017 2:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Set user variable from SQL Query result set to be used later
Replies: 5
Views: 6042

Set user variable from SQL Query result set to be used later

I have a request that requires us to pull the max value of a field from a table which will be incremented and appended to the end of records which are sourced from the mainframe downstream in the sequence. Is it possible to set a user variable to the max value and use it later down the line when pro...
by elinzeyjr
Thu May 11, 2017 2:59 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert Mainframe hexadecimal to integer
Replies: 10
Views: 5921

FranklinE, you hit the nail on the head. Switched it to big-endian and it is now translating the COMP field as expected.

Thanks Again for your help.
by elinzeyjr
Thu May 11, 2017 2:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert Mainframe hexadecimal to integer
Replies: 10
Views: 5921

Thank you for your initial response FranklinE. We tried the decimaltodecimal function in the transform step and its returning the same value (-29691). We also used the "View Data" option inside the complex file element its displaying the same(-29691). Any other items that you think we shou...
by elinzeyjr
Thu May 11, 2017 9:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert Mainframe hexadecimal to integer
Replies: 10
Views: 5921

Convert Mainframe hexadecimal to integer

Hello everyone, I am new to the forum and to Datastage. We have a requirement to pull a mainframe file over to our unix server that will be processed by Datastage and loaded into Greenplum. We successfully pulled and loaded the data into Greenplum. We are having an issue with one field where it is d...