MOVING DS JOBS
Moderators: chulett, rschirm, roy
MOVING DS JOBS
I have done all the development in R3DEV AND NOW I NEED TO MOVE ALL THESE JOBS TO R3QA ..... DO I NEED TO CHANGE THE PATH IN ALLTHE JOBS BUT THERE ARE HUNDEREDS OF JOBS ..... IS THERE ANY OTHER WAY ...EASY WAY....
Are you talking about a hardcode directory path in the job designs, in places such as the sequential file name?
The answer was use a job parameter that is switchable according to the environment you're in, and pass the value in using job control. The next answer is embed the default value along with the job parameter. Then, use a mass parameter default update utility like Parameter Manager to mass deploy a default change.
If you didn't use a parameter, then you have few options. You could text search/replace inside the .dsx file the change.
The answer was use a job parameter that is switchable according to the environment you're in, and pass the value in using job control. The next answer is embed the default value along with the job parameter. Then, use a mass parameter default update utility like Parameter Manager to mass deploy a default change.
If you didn't use a parameter, then you have few options. You could text search/replace inside the .dsx file the change.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
At this point it is not too late as everything is still in your dev project. Bite the bullet and modify the jobs to use Job Parameters for anything that could change from environment to environment.
What are you going to do when this rolls to production? Do this all over again? What about the maintenance of these jobs? Constantly re-edit the dsx to make all of the appropriate changes? Don't even think about it. Go back and make the change, there will be some pain now but you'll be much happier later.
What are you going to do when this rolls to production? Do this all over again? What about the maintenance of these jobs? Constantly re-edit the dsx to make all of the appropriate changes? Don't even think about it. Go back and make the change, there will be some pain now but you'll be much happier later.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Another vote for "do it now". There'll never be a better time. There was, but it's gone.
Parameters buy you insurance against things that may change over time or between environments, such as pathnames, data source names, passwords, WHERE condition constants.
Best practice is to have default values point to your development environment (so you can't accidentally damage your production environment), and to have default values for passwords not being valid passwords at all (so that anyone using the system must provide a valid password).
And make sure you use Encrypted as the type for password parameters, and Pathname as the type for pathname parameters. In the second case it means you automatically get a browser when being prompted for the pathname. I've also found that a List type for data source names provides a measure of idiot-proofing too.
Parameters buy you insurance against things that may change over time or between environments, such as pathnames, data source names, passwords, WHERE condition constants.
Best practice is to have default values point to your development environment (so you can't accidentally damage your production environment), and to have default values for passwords not being valid passwords at all (so that anyone using the system must provide a valid password).
And make sure you use Encrypted as the type for password parameters, and Pathname as the type for pathname parameters. In the second case it means you automatically get a browser when being prompted for the pathname. I've also found that a List type for data source names provides a measure of idiot-proofing too.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Hi -
Not that my input has anything to do with this matter - it is just a curiousity. Even though you use encrypted for the parameter containing the password you can easily decrypt it by making a job with
some source --> transformer --> flat file
(having at least one row going through this transformer) and enter the password parameter in a derivation field. It will acutally write the encrypted password in readable letters (at least in DS version 5 and 6 havent had the opportunity to test this in version 7).
Regards
Peter
Not that my input has anything to do with this matter - it is just a curiousity. Even though you use encrypted for the parameter containing the password you can easily decrypt it by making a job with
some source --> transformer --> flat file
(having at least one row going through this transformer) and enter the password parameter in a derivation field. It will acutally write the encrypted password in readable letters (at least in DS version 5 and 6 havent had the opportunity to test this in version 7).
Regards
Peter
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Ssssshhh!!!peterbaun wrote:Hi -
Not that my input has anything to do with this matter - it is just a curiousity. Even though you use encrypted for the parameter containing the password you can easily decrypt it by making a job with
some source --> transformer --> flat file
(having at least one row going through this transformer) and enter the password parameter in a derivation field. It will acutally write the encrypted password in readable letters (at least in DS version 5 and 6 havent had the opportunity to test this in version 7).
Regards
Peter
It's a known issue.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
The DB2 Bulk Load Stage has the same problem, on the other hand since it's so easy to decrypt DataStage encryption I sometimes wonder why I bother encrypting passwords.Teej wrote:Another known issue:
You use Oracle in PX for 6.x? Just for fun, check out the scratch directories, and look for ora*.par files. Whoops, password is visible.
Haven't test it with 7.0.1 to see if they fixed my open issue.
-T.J.
Ogmios