generateUUID.java:1: package com.ascentialsoftware.jds does not exist
import com.ascentialsoftware.jds.Stage;
^
generateUUID.java:2: package com.ascentialsoftware.jds does not exist
import com.ascentialsoftware.jds.Row;
^
generateUUID.java:4: cannot find symbol
symbol: class Stage
public class generateUUID extends Stage
^
generateUUID.java:10: cannot find symbol
symbol : method trace()
location: class generateUUID
trace();
^
generateUUID.java:13: incompatible types
found : java.util.UUID
required: java.lang.String
String newguid = UUID.randomUUID();
^
generateUUID.java:14: cannot find symbol
symbol : class Row
location: class generateUUID
Row outputRow=createOutputRow();
^
generateUUID.java:14: cannot find symbol
symbol : method createOutputRow()
location: class generateUUID
Row outputRow=createOutputRow();
^
generateUUID.java:16: cannot find symbol
symbol : variable OUTPUT_STATUS_READY
location: class generateUUID
return OUTPUT_STATUS_READY
Please let me know what all the steps we need to follow to execute a java functon successfully in datastage job.Do we need to install the packages com.ascential.* and also from which path we need to compile the code??
it's all about your classpath(s) at development and compile time, the manner in which the import statements are set up...where you have jar files and other resources......all in all...java development things. Make sure you have a java resource available for the work. Most will have a java IDE already set up, or will know how to set one up, and will have their own personal and site preferences as to where to put libraries and jar files and how to name them at your site, etc. etc.
google it also. There are hundreds of resources and forums for java, many of which are as rich as our own dsXchange. Many of those such forums are great places for issues regarding the initial compilation of your code.
Hi All,
The code got compiled successfully and we added DATASTAGE_JVM and DATASTAGE_JRE environmental vairables on the AIX server and the java function executed successfully using the java client stage on the job
Great work! Once you do all the environment work the first time, you probably will never have to look at it again....now you can do some creative things to extend your DS app. Congrats.