Você está na página 1de 4

10/1/2014

MyDatastageNotes:Scenario:Getthenextcolumnvalueincurrentrow
0

More NextBlog

CreateBlog SignIn

MyDatastageNotes
Monday,September8,2014
Pages

Scenario:Getthenextcolumnvalueincurrentrow

Home
DifferentVersions
AllDatastageStages
ConfigurationFile
Sequentional_Stage
Dataset
TransformerStage
SortStage

Inputfile:
Sq,No
1,1000
2,2200
3,3030
4,5600

Aggregator_Stage
JoinStage
Lookup_Stage
Merge_Stage
Filter_Stage
CopyStage
Funnel_Stage

OutputFile:
Sq,No,No2
1,1000,2200
2,2200,3030
3,3030,5600
4,5600,NULL

ColumnGenerator
Surrogate_Key_Stage

SolutionDesign:

SCD
Pivot_Enterprise_Stage

a)JobDesign:

Sequence_Activities
DatastageStudyMaterial/Interview
Questions

Belowisthedesignwhichcanachievetheoutputasweneeded.Here,wearereadingseqfileasainput,thendataispassingthroughaSortandTransformerstagetoachievethe
output.

DatastageErrorsandResolution
DatastageScenariosandsolutions
UnixShellScripting
SQL/Database
DatawarehousingConcepts

BlogArchive

2014(46)
September(40)

http://mydatastagenotes.blogspot.in/2014/09/scenariogetnextcolumnvaluein.html

1/4

10/1/2014

MyDatastageNotes:Scenario:Getthenextcolumnvalueincurrentrow
Starschemavs.snowflakeschema:
Whichisbetter?...
HowtouseAggregatestagetocount
numberofreco...
ColumnExportStage:
ETLJobDesignStandards
Scenario:Getthemaxsalaryfrom
datafile(Seq...
PeekStage
Scenario:TogettheUniqueand
Duplicatesvalues...
Scenario:Getthenextcolumnvalue
incurrentrow...

DummyDataGenerationusingRow
Generator
ConductorNodeinDatastage
SequentialFileBestPerformance
Settings/Tips
Splittinginputfilesintothreedifferent
filesu...
SequentialfilewithDuplicateRecords
Scenarios_Unix
Unix_AWK
Unix_SED

b)SortStageProperties
inSortstage,wewillsortthedatabasedoncolumnSqindescendingorder.

Unix_Cut
UNIXEnvironmentalVariables

OtherusefulUNIXcommands
UnixFilesystemsecurity
UnixWildcards
UnixRedirection
UnixSearchingthecontentsofafile
UnixDisplayingthecontentsofafile
onthescre...
UnixRemovingFiles
UnixMove
UnixCopy
UnixPathnamesListingDirectories
UnixMakingDirectories
UnixIntroduction
RIGHTANDLEFTFUNCTIONSIN
TRANSFORMERSTAGEWITH...
FIELDFUNCTIONINTRANSFORMER
STAGEWITHEXAMPLE
SORTSTAGEANDTRANSFORMER

c)TransformerStageProperties
Here,wetook2stagevariable:StageVar,StageVar1
andtheirderivationsare
StageVar1=StageVar

http://mydatastagenotes.blogspot.in/2014/09/scenariogetnextcolumnvaluein.html

2/4

10/1/2014

MyDatastageNotes:Scenario:Getthenextcolumnvalueincurrentrow
STAGEWITHSAMPLEDATA...

DSLink6.No=StageVar1

HOWTOCONVERTROWSINTOTHE
COLUMNSINDATASTAGE
TRANSFORMERSTAGEFOR
DEPARTMENTWISEDATA
FindTotal_ScoreandPercentage
usingTransformer...
FIELDFUNCTIONINTRANSFORMER
STAGE
CONCATENATEDATAUSING
TRANSFORMERSTAGE
TRANSFORMERSTAGEUSING
PADSTRINGFUNCTION
TRANSFORMERSTAGEUSING
STRIPWHITESPACESFUNCTION

May(4)
February(2)
2013(39)

d)OutputFile
BeforecapturingthedataintoSequentialfile.Wewillsortthedataagaininascendingordertogettheoutputasweneeded.

Postedbymanoharat1:32AM

Nocomments:
http://mydatastagenotes.blogspot.in/2014/09/scenariogetnextcolumnvaluein.html

3/4

10/1/2014

MyDatastageNotes:Scenario:Getthenextcolumnvalueincurrentrow
PostaComment
NewerPost

Home

OlderPost

Subscribeto:PostComments(Atom)

Manohar.Simpletemplate.PoweredbyBlogger.

http://mydatastagenotes.blogspot.in/2014/09/scenariogetnextcolumnvaluein.html

4/4