Page 1 of 1

Need to get Object list from Package (.pkg) file

Posted: Fri Feb 01, 2019 2:28 pm
by amit.jaiswal_ATL
Hello All,

For deployment automation and source code management I need to extract the object list from the DataStage package. Is there any option to achieve it?

Another question - Is there any server side CLI available in 11.3+ to compile the dsx file on UNIX server?

Thanks in advance.

Posted: Mon Feb 04, 2019 7:40 pm
by mouthou
What do you mean by DataStage package? Do you have list exported already. DataStage package means isx kind of packages here, so needing more clarity.

Again your other question needs clarity too. With my implicit understanding, yes the compilation can be automated on JOBS and not on DSX file. If you supply the job name one after another to the command/script, it will be compiled (you can use the same list which you used to automate the export and import it somewhere)

Posted: Wed Feb 06, 2019 8:10 am
by PaulVL
We don't use packages here, we simply use isx files. Here is what I do to get a list of what the ISX contains.


shell script command:


jobList=`$DSHOME/../../Clients/istools/cli/istool.sh import -domain $host:$port -authfile /$userName/.datastage.authfile -archive $isxFile -preview -datastage "$host/$project" | grep "\[" | rev | cut -d "/" -f1 | rev | cut -d "." -f1`


Works for me.
I then pump that array into a few checks for ensuring the objects are not locked or running prior to loading. Ever try loading a job that is currently running... bad day ahead for your admin. That's for sure.

Posted: Wed Feb 06, 2019 8:54 am
by chulett
You might want to try an exact search here for "deploy package", there are 17 results and perhaps some of them might help.

Posted: Thu Feb 07, 2019 7:47 am
by Mike
Totally unsupported hack...

But the .pkg package file actually contains an XML document for the build manifest.

In case you care to pursue using that build manifest...

The .pkg file is simply a compressed archive file. You can rename it as a .zip and uncompress it. You'll see something like Manifest_Build1.MF in a directory like _META-INFS_. This .MF file is an XML document that lists everything in the package build.

Mike

Posted: Wed Feb 13, 2019 1:34 pm
by amit.jaiswal_ATL
Hi PaulVL,

Thanks for the info. I tried your below command with correct values but getting error : Untyped Exception: entry

jobList=`$DSHOME/../../Clients/istools/cli/istool.sh import -domain $host:$port -authfile /$userName/.datastage.authfile -archive $isxFile -preview -datastage "$host/$project" | grep "\[" | rev | cut -d "/" -f1 | rev | cut -d "." -f1`

Can you please help ?

Thanks,

Posted: Fri Feb 15, 2019 5:07 am
by PaulVL
Well, like I said, I use an ISX file not a package.

I also don't have enough info as to how you had set up your environment.

Do you have a funcation authfile?

message me privately with the full command syntax you are using.

Send me the full error message as well.