Search found 30 matches

by a2love
Wed Apr 18, 2007 8:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: ftp - write ls or dir to file while ftp'ing
Replies: 1
Views: 1189

ftp - write ls or dir to file while ftp'ing

Executing a batch job through execute command. Was having an issue with the batch where I need to check if FTP was successful by reading the ls or dir, and send that list to a file, then use grep on that file to find my required file name. Any suggestions? slightly out of the DS realm but any help i...
by a2love
Mon Apr 16, 2007 2:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Does file exist on mainframe
Replies: 5
Views: 3511

Does file exist on mainframe

Hi all, I am trying to finish up a job sequence that sends a success/failure notification if a file is/is not created on the mainframe. Does anyone know how to accomplish this? I assume it would be something like a script checking if file exists after logging into a server via FTP... I am unsure of ...
by a2love
Thu Apr 12, 2007 12:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Routine - does file exist
Replies: 5
Views: 2080

Great. Thanks for your help. :D
by a2love
Thu Apr 12, 2007 9:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Routine - does file exist
Replies: 5
Views: 2080

My C skills are beginner level :(. But for the wait for file stage, when time is 00:00:00 how will it act, meaning will it fail if once it reaces this point in the process if the file does not exist? (i know simple question, but I need to be sure)

Thanks.
by a2love
Thu Apr 12, 2007 8:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Routine - does file exist
Replies: 5
Views: 2080

Routine - does file exist

Hi all,

I am a real newb with routine writing. I am trying to have a routing that looks for a file. If it exists then the routine is OK, otherwise it is a Fail.
Could anyone help me out on this? or point me to some resources that I can sift through to find a solution?

Thanks and happy thursday :)
by a2love
Tue Apr 10, 2007 11:53 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Execute Command - Shell script execution error
Replies: 12
Views: 16979

sidenote: posting ftp loc, user, and password may not be a great idea for sensitive data... and if its fake good on ya :wink:
by a2love
Fri Mar 02, 2007 12:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Passing Routine Output as Parameter into SQL Query
Replies: 4
Views: 5173

Passing Routine Output as Parameter into SQL Query

Hi all, Had help with parts of this recently but can't get to the end result. I have a Routine which reads a list, passes the list to a parameter in string format, and a Job which trys to use this parameter in a WHERE clause in a DB2 SQL Query. Here are the specifics: The Routine is as follows: Ans ...
by a2love
Thu Mar 01, 2007 10:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DB2 SQL referencing a list
Replies: 16
Views: 6547

Hey again Ray, Well i appear to have set the value of the parameter correctly. This is the value of the param passed in: ppFNDPolicyList='0136530000','0322430008','0414643009','0532516008' So thats all good. But when I run the following code: SELECT CTR_POL_NUM, CTR_RSA_TOT_PREM FROM DMIDBO.CTR_TRAN...
by a2love
Wed Feb 28, 2007 9:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DB2 SQL referencing a list
Replies: 16
Views: 6547

Hi Ray, I have defined the Parameter type as String. Here is my routine: Ans = "" OpenSeq FoundationPoliciesFile to fFoundationFile Then Loop While ReadSeq Line from fFoundationFile Ans<-1> = Line; Repeat Convert @FM To "," In Ans CloseSeq fFoundationFile End Else Call DSLogWarn(...
by a2love
Tue Feb 27, 2007 4:12 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DB2 SQL referencing a list
Replies: 16
Views: 6547

Ok I used all my "resources" and was able to create the routine to pull the data. It worked :D . In my job sequence I have a simple routine activity linked to a parellel job (containing the DB2 sql pull). On runtime I recieve the following error: db2testing..JobControl (@Copy_of_jobDB2FNDt...
by a2love
Tue Feb 27, 2007 4:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Exec. Command stage to import sequential file info
Replies: 10
Views: 3208

I can grab the data fine now... db2testing_exec_command..JobControl (@Execute_Command_8): Executed: type \\Nho04\micpriv\Adam\CPC_Datasets\ER_CPC_Unmatched_HUON_PolicyNumbers.txt Reply=0 Output from command ====> '0136530000','0322430008','0414643009','0532516008', however I am still getting the sam...
by a2love
Tue Feb 27, 2007 3:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DB2 SQL referencing a list
Replies: 16
Views: 6547

hey Ray. Thanks for the reponse. Do you know where I can locate documentation on where to write the routine in datastage? my IBM manual is lacking... at best.
by a2love
Tue Feb 27, 2007 1:34 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Exec. Command stage to import sequential file info
Replies: 10
Views: 3208

It seems to not like the <1>. My expression is Execute_Command_8.$CommandOutput<1> and it give me a compile error of 'Expected: Expression'. I tried Execute_Command_8.$CommandOutput[1] It compiled but errored on execution with the same error: db2testing..JobControl (@jobDB2FNDtest): Controller probl...
by a2love
Tue Feb 27, 2007 10:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Exec. Command stage to import sequential file info
Replies: 10
Views: 3208

Ok that makes sense about the list, thanks for the input I was unaware of how exactly the list setting worked. I have formatted my input .txt file to have all values on one line... i.e. '12345','54321', This parameter is now defined as a string as well. I am still recieving the same error. Where exa...