Why we use parameters instead of hard code in datastage.

Answer Posted / nish

hard coding is a very bad practice.

You will face troubles once you deploy to production environment and need to make changes.

Instead if you parameteris and just make the change in original it will automatically update.

This is similar to your ATM card and pin. even if you change/update your pin the card will work.

If pin is hardcoded to the card and you need to change pin, then you need to get a new card everytime you want to change pin.

Does that make sense?

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of surogate key in datastage

1812


Difference between sequential file and data set?

639


what is 'reconsideration error' and how can i respond to this error and how to debug this

2117


Hi everyone,I have kept a project Sales And Distribution for a pharmaceutical company.can anybody explain one complex business rule that we had in our project and how did you accomplish it using DS?

1757


What is active and passive stage?

876






what are the devoleper roles in real time? plz tell i am new to datastage....

1635


What is a merge?

666


create a job that splits the data in the Jobs.txt file into four output files. You will direct the data to the different output files using constraints. • Job name: JobLevels • Source file: Jobs.txt • Target file 1: LowLevelJobs.txt − min_lvl between 0 and 25 inclusive. − Same column types and headings as Jobs.txt. − Include column names in the first line of the output file. − Job description column should be preceded by the string “Job Title:” and embedded within square brackets. For example, if the job description is “Designer”, the derived value is: “Job Title: [Designer]”. • Target file 2: MidLevelJobs.txt − min_lvl between 26 and 100 inclusive. − Same format and derivations as Target file 1. • Target file 3: HighLevelJobs.txt − min_lvl between 101 and 500 inclusive. − Same format and derivations as Target file 1. • Rejects file: JobRejects.txt − min_lvl is out of range, i.e., below 0 or above 500. − This file has only two columns: job_id and reject_desc. − reject_desc is a variable-length text field, maximum length 100. It should contain a string of the form: “Level out of range: ”, where is the value in the min_lvl field. My Question is how do you write the stage variable for reject rows.

2185


What is the command line function to import and export the ds jobs?

679


What are the features of datastage flow designer?

629


What are data elements?

655


What is the difference between validated and compiled in the datastage?

699


What are the types of hashed files in data stage

640


explain about citrix scheduling tool in datastage

1808


What are the different options associated with dsjob command?

935