Parameter Usage
Moderators: chulett, rschirm, roy
Parameter Usage
Sometimes it could be of interest to reduce those parameters which aren't any more used at any place it the Job. Is there a simple way to make a usage analyse if a parameter is still used?
Wolfgang Hürter
Amsterdam
Amsterdam
-
- Premium Member
- Posts: 1044
- Joined: Wed Sep 29, 2004 3:30 am
- Location: Nottingham, UK
- Contact:
Personally I'd do this on a .dsx export of the project - I have a script that does a daily export of the whole project and a bunch of scripts that do various analysis tasks such as looking for file names with spaces in, and the hash keys for certain hashed file types.
Phil Hibbs | Capgemini
Technical Consultant
Technical Consultant
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
So long as you're very careful to look everywhere! A parameter name can appear in an expression, but is only a parameter name if it is not enclosed within quotes (in which case it is a literal string).
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.
-
- Premium Member
- Posts: 1044
- Joined: Wed Sep 29, 2004 3:30 am
- Location: Nottingham, UK
- Contact:
Something that looks like a parameter usage, such as #PARAM# or #$ENVVAR# is unlikely to appear in a literal string. I suppose if your projects do have literal strings like this in them, then you would need to take special care not to mistake a literal string for a parameter usage, for instance if you have jobs that process DataStage job design information. Most projects I guess would not experience any false positives in this manner. What you don't want is parameter usages to be missed out, because then you might delete a parameter that is used. Can you think of any instances where a parameter would not be immediately obvious like #PARAM#?ray.wurlod wrote:So long as you're very careful to look everywhere! A parameter name can appear in an expression, but is only a parameter name if it is not enclosed within quotes (in which case it is a literal string).
Phil Hibbs | Capgemini
Technical Consultant
Technical Consultant
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: