SlideShare a Scribd company logo
1 of 5
Download to read offline
1
Data Manipulation and Data Management
Day 1, Session IV
M. Amir Hossain, Ph.D.
January 17, 2016
Transformation Expressions
Arithmetic Operations: Following arithmetic operators
are available:
 + Addition.
 - Subtraction.
 * Multiplication.
 / Division.
 ** Exponentiation.
2
Transformation Expressions
 No two operators can appear consecutively.
 Arithmetic operators cannot be implied. For example,
(VAR1)(VAR2) is not a legal specification; you must specify
VAR1*VAR2.
 To improve readability, blanks (not commas) can be inserted
before and after an operator.
 To form complex expressions, you can use variables, constants,
and functions with arithmetic operators.
Transformation Expressions
The order of execution is functions first, then
exponentiation, then multiplication, division, and
unary, and then addition and subtraction.
Operators at the same level are executed from left to
right.
To override the order of operation, use parentheses.
Execution begins with the innermost set of
parentheses and progresses out.
3
A relation is a logical expression that compares two values using
a relational operator. Relational operators are:
 EQ or = Equal to.
 NE or ~= ¬ = or <> Not equal to.
 LT or < Less than.
 LE or <= Less than or equal to.
 GT or > Greater than.
 GE or >= Greater than or equal to.
Relational Operators
Data Manipulation Commands
COMPUTE
• COMPUTE target variable = expression
Overview
• COMPUTE creates new numeric variables or modifies the
values of existing variables. The variable named on the left of
the equal sign is the target variable. The variables, constants,
and functions on the right side of the equal sign form an
assignment expression.
4
Data Manipulation Commands
Examples
•
• COMPUTE INCREMENT=SALARY-SALBEGIN.
• EXECUTE.
• COMPUTE PINCREM=(INCREMENT/SALBEGIN)*100.
• EXECUTE.
• COMPUTE RAISE=SALARY*0.12.
• EXECUTE.
• COMPUTE NEWSAL1 = SALARY + SALARY*0.10
• EXECUTE.
• COMPUTE NEWSAL2 = SALARY + SALBEGIN*0.10 + EDUC*10
• EXECUTE.
RECODE
RECODE varlist (value list =value)...(value list=value) [INTO varlist] [/varlist...]
Input keywords: LO, LOWEST, HI, HIGHEST, THRU, MISSING, SYSMIS,
ELSE
Output keywords: COPY, SYSMIS
Overview:
• RECODE changes, rearranges, or consolidates the values of an existing
variable. RECODE can be executed on a value-by-value basis or for a
range of values. Where it can be used, RECODE is much more efficient
that the series of IF commands that produce the same transformation.
With RECODE, you must specify the new values.
5
INTO keyword
INTO specifies a target variable to receive recoded values from the original , or
source variables. Source variable remain unchanged after the recode.
INTO must follow the value specification for the source variables that are being
recoded in to the target variables.
The number of target variable must equal the number of source variables.
Example
RECODE SALARY (LO THRU 50000=1)(50001 THRU 75000=2)(75001 THRU HI=3)
INTO SALCAT1.
EXECUTE.

More Related Content

What's hot

C++ Expressions Notes
C++ Expressions NotesC++ Expressions Notes
C++ Expressions NotesProf Ansari
 
Python Training in Bangalore | Python Operators | Learnbay.in
Python Training in Bangalore | Python Operators | Learnbay.inPython Training in Bangalore | Python Operators | Learnbay.in
Python Training in Bangalore | Python Operators | Learnbay.inLearnbayin
 
Operators in Python
Operators in PythonOperators in Python
Operators in PythonAnusuya123
 
Use of Linear Regression in Machine Learning for Ranking
Use of Linear Regression in Machine Learning for RankingUse of Linear Regression in Machine Learning for Ranking
Use of Linear Regression in Machine Learning for Rankingijsrd.com
 
C++ revision add on till now
C++ revision add on till nowC++ revision add on till now
C++ revision add on till nowAmAn Singh
 
Variable, constant, operators and control statement
Variable, constant, operators and control statementVariable, constant, operators and control statement
Variable, constant, operators and control statementEyelean xilef
 
Operator precedence and associativity
Operator precedence and associativityOperator precedence and associativity
Operator precedence and associativityDr.Sandhiya Ravi
 

What's hot (16)

Opeartor &amp; expression
Opeartor &amp; expressionOpeartor &amp; expression
Opeartor &amp; expression
 
R operators
R   operatorsR   operators
R operators
 
Python operators
Python operatorsPython operators
Python operators
 
Operators
OperatorsOperators
Operators
 
C++ Expressions Notes
C++ Expressions NotesC++ Expressions Notes
C++ Expressions Notes
 
Python : basic operators
Python : basic operatorsPython : basic operators
Python : basic operators
 
Operators in python
Operators in pythonOperators in python
Operators in python
 
Chapter 7: Arithmetic and Relational Operators
Chapter 7:  Arithmetic and Relational Operators Chapter 7:  Arithmetic and Relational Operators
Chapter 7: Arithmetic and Relational Operators
 
Python Training in Bangalore | Python Operators | Learnbay.in
Python Training in Bangalore | Python Operators | Learnbay.inPython Training in Bangalore | Python Operators | Learnbay.in
Python Training in Bangalore | Python Operators | Learnbay.in
 
Operators in Python
Operators in PythonOperators in Python
Operators in Python
 
Use of Linear Regression in Machine Learning for Ranking
Use of Linear Regression in Machine Learning for RankingUse of Linear Regression in Machine Learning for Ranking
Use of Linear Regression in Machine Learning for Ranking
 
Python Operators
Python OperatorsPython Operators
Python Operators
 
2 r algebra
2 r algebra2 r algebra
2 r algebra
 
C++ revision add on till now
C++ revision add on till nowC++ revision add on till now
C++ revision add on till now
 
Variable, constant, operators and control statement
Variable, constant, operators and control statementVariable, constant, operators and control statement
Variable, constant, operators and control statement
 
Operator precedence and associativity
Operator precedence and associativityOperator precedence and associativity
Operator precedence and associativity
 

Viewers also liked

Ooabapnoteswithprogram good 78
Ooabapnoteswithprogram good 78Ooabapnoteswithprogram good 78
Ooabapnoteswithprogram good 78Yogesh Mehra
 
Day1, session i- spss
Day1, session i- spssDay1, session i- spss
Day1, session i- spssabir hossain
 
003 inspired training_leadership 03
003 inspired training_leadership 03003 inspired training_leadership 03
003 inspired training_leadership 03abir hossain
 
Day2 session i&amp;ii - spss
Day2 session i&amp;ii - spssDay2 session i&amp;ii - spss
Day2 session i&amp;ii - spssabir hossain
 
001 inspired training_leadership 01
001 inspired training_leadership 01001 inspired training_leadership 01
001 inspired training_leadership 01abir hossain
 
007 -essential skills for leaders
007 -essential skills for  leaders007 -essential skills for  leaders
007 -essential skills for leadersabir hossain
 
005 ways to turn challenges into opportunities
005 ways to turn challenges into opportunities005 ways to turn challenges into opportunities
005 ways to turn challenges into opportunitiesabir hossain
 
009 communication improve results
009 communication improve results009 communication improve results
009 communication improve resultsabir hossain
 
011. conflict management
011. conflict management011. conflict management
011. conflict managementabir hossain
 
Fashion illustration
Fashion illustrationFashion illustration
Fashion illustrationabir hossain
 
07. training methods
07. training methods07. training methods
07. training methodsabir hossain
 
02. process of training
02. process of training02. process of training
02. process of trainingabir hossain
 
10. norms of a trainer
10. norms of a trainer10. norms of a trainer
10. norms of a trainerabir hossain
 
06. effective powerpoint presentation
06. effective powerpoint presentation06. effective powerpoint presentation
06. effective powerpoint presentationabir hossain
 
12. do's and don’ts of training
12. do's and don’ts of training12. do's and don’ts of training
12. do's and don’ts of trainingabir hossain
 

Viewers also liked (18)

Ooabapnoteswithprogram good 78
Ooabapnoteswithprogram good 78Ooabapnoteswithprogram good 78
Ooabapnoteswithprogram good 78
 
Day1, session i- spss
Day1, session i- spssDay1, session i- spss
Day1, session i- spss
 
003 inspired training_leadership 03
003 inspired training_leadership 03003 inspired training_leadership 03
003 inspired training_leadership 03
 
Day2 session i&amp;ii - spss
Day2 session i&amp;ii - spssDay2 session i&amp;ii - spss
Day2 session i&amp;ii - spss
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
 
001 inspired training_leadership 01
001 inspired training_leadership 01001 inspired training_leadership 01
001 inspired training_leadership 01
 
007 -essential skills for leaders
007 -essential skills for  leaders007 -essential skills for  leaders
007 -essential skills for leaders
 
SPSS
SPSSSPSS
SPSS
 
005 ways to turn challenges into opportunities
005 ways to turn challenges into opportunities005 ways to turn challenges into opportunities
005 ways to turn challenges into opportunities
 
Abap tips
Abap tipsAbap tips
Abap tips
 
009 communication improve results
009 communication improve results009 communication improve results
009 communication improve results
 
011. conflict management
011. conflict management011. conflict management
011. conflict management
 
Fashion illustration
Fashion illustrationFashion illustration
Fashion illustration
 
07. training methods
07. training methods07. training methods
07. training methods
 
02. process of training
02. process of training02. process of training
02. process of training
 
10. norms of a trainer
10. norms of a trainer10. norms of a trainer
10. norms of a trainer
 
06. effective powerpoint presentation
06. effective powerpoint presentation06. effective powerpoint presentation
06. effective powerpoint presentation
 
12. do's and don’ts of training
12. do's and don’ts of training12. do's and don’ts of training
12. do's and don’ts of training
 

Similar to Day1, session iv - spss

Operation and expression in c++
Operation and expression in c++Operation and expression in c++
Operation and expression in c++Online
 
Operators in java presentation
Operators in java presentationOperators in java presentation
Operators in java presentationkunal kishore
 
operators and expressions in c++
 operators and expressions in c++ operators and expressions in c++
operators and expressions in c++sanya6900
 
E212d9a797dbms chapter3 b.sc2
E212d9a797dbms chapter3 b.sc2E212d9a797dbms chapter3 b.sc2
E212d9a797dbms chapter3 b.sc2Mukund Trivedi
 
E212d9a797dbms chapter3 b.sc2 (2)
E212d9a797dbms chapter3 b.sc2 (2)E212d9a797dbms chapter3 b.sc2 (2)
E212d9a797dbms chapter3 b.sc2 (2)Mukund Trivedi
 
E212d9a797dbms chapter3 b.sc2 (1)
E212d9a797dbms chapter3 b.sc2 (1)E212d9a797dbms chapter3 b.sc2 (1)
E212d9a797dbms chapter3 b.sc2 (1)Mukund Trivedi
 
Operator precedence and associativity
Operator precedence and associativityOperator precedence and associativity
Operator precedence and associativityDr.Sandhiya Ravi
 
OCA Java SE 8 Exam Chapter 2 Operators & Statements
OCA Java SE 8 Exam Chapter 2 Operators & StatementsOCA Java SE 8 Exam Chapter 2 Operators & Statements
OCA Java SE 8 Exam Chapter 2 Operators & Statementsİbrahim Kürce
 
This slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxThis slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxranaashutosh531pvt
 
Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++bajiajugal
 
Operators in java script
Operators   in  java scriptOperators   in  java script
Operators in java scriptAbhinav Somani
 
Operators and Expressions in C++
Operators and Expressions in C++Operators and Expressions in C++
Operators and Expressions in C++Praveen M Jigajinni
 
OPERATORS OF C++
OPERATORS OF C++OPERATORS OF C++
OPERATORS OF C++ANANT VYAS
 
Chapter 3.3
Chapter 3.3Chapter 3.3
Chapter 3.3sotlsoc
 

Similar to Day1, session iv - spss (20)

Operator
OperatorOperator
Operator
 
c programming2.pptx
c programming2.pptxc programming2.pptx
c programming2.pptx
 
Operation and expression in c++
Operation and expression in c++Operation and expression in c++
Operation and expression in c++
 
Operators in java presentation
Operators in java presentationOperators in java presentation
Operators in java presentation
 
operators and expressions in c++
 operators and expressions in c++ operators and expressions in c++
operators and expressions in c++
 
E212d9a797dbms chapter3 b.sc2
E212d9a797dbms chapter3 b.sc2E212d9a797dbms chapter3 b.sc2
E212d9a797dbms chapter3 b.sc2
 
E212d9a797dbms chapter3 b.sc2 (2)
E212d9a797dbms chapter3 b.sc2 (2)E212d9a797dbms chapter3 b.sc2 (2)
E212d9a797dbms chapter3 b.sc2 (2)
 
E212d9a797dbms chapter3 b.sc2 (1)
E212d9a797dbms chapter3 b.sc2 (1)E212d9a797dbms chapter3 b.sc2 (1)
E212d9a797dbms chapter3 b.sc2 (1)
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
 
Operator precedence and associativity
Operator precedence and associativityOperator precedence and associativity
Operator precedence and associativity
 
OCA Java SE 8 Exam Chapter 2 Operators & Statements
OCA Java SE 8 Exam Chapter 2 Operators & StatementsOCA Java SE 8 Exam Chapter 2 Operators & Statements
OCA Java SE 8 Exam Chapter 2 Operators & Statements
 
This slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxThis slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptx
 
Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++
 
Operators in java script
Operators   in  java scriptOperators   in  java script
Operators in java script
 
Coper in C
Coper in CCoper in C
Coper in C
 
Data Transformation
Data TransformationData Transformation
Data Transformation
 
Operators and Expressions in C++
Operators and Expressions in C++Operators and Expressions in C++
Operators and Expressions in C++
 
OPERATORS OF C++
OPERATORS OF C++OPERATORS OF C++
OPERATORS OF C++
 
C# operators
C# operatorsC# operators
C# operators
 
Chapter 3.3
Chapter 3.3Chapter 3.3
Chapter 3.3
 

More from abir hossain

Shopping carts payment ethical issue_e-commerce
Shopping carts payment ethical issue_e-commerceShopping carts payment ethical issue_e-commerce
Shopping carts payment ethical issue_e-commerceabir hossain
 
Electronic commerce
Electronic commerceElectronic commerce
Electronic commerceabir hossain
 
E commerce online-advertising_email_marketing
E commerce online-advertising_email_marketingE commerce online-advertising_email_marketing
E commerce online-advertising_email_marketingabir hossain
 
Cmc exercise therapy for back pain
Cmc exercise therapy for back painCmc exercise therapy for back pain
Cmc exercise therapy for back painabir hossain
 
Cmc exercise therapy for back pain
Cmc exercise therapy for back painCmc exercise therapy for back pain
Cmc exercise therapy for back painabir hossain
 
Cmc exercise therapy for back pain
Cmc exercise therapy for back painCmc exercise therapy for back pain
Cmc exercise therapy for back painabir hossain
 
Social media marketing social media analytics
Social media marketing social media analyticsSocial media marketing social media analytics
Social media marketing social media analyticsabir hossain
 
Online advertising mobile marketing ppc_seo
Online advertising mobile marketing ppc_seoOnline advertising mobile marketing ppc_seo
Online advertising mobile marketing ppc_seoabir hossain
 
E marketing(mail chimp)
E marketing(mail chimp)E marketing(mail chimp)
E marketing(mail chimp)abir hossain
 
Ob handout social system_Organizational behavior
Ob handout social system_Organizational behavior Ob handout social system_Organizational behavior
Ob handout social system_Organizational behavior abir hossain
 
Organizational behavior
Organizational behavior Organizational behavior
Organizational behavior abir hossain
 
principle of management
principle of management principle of management
principle of management abir hossain
 
what is management
what is management what is management
what is management abir hossain
 
Line staff, responsiblity of hrm lecture_ 02 class
Line   staff, responsiblity of hrm lecture_ 02 classLine   staff, responsiblity of hrm lecture_ 02 class
Line staff, responsiblity of hrm lecture_ 02 classabir hossain
 
Hrm performance mgt appraisal
Hrm  performance mgt   appraisalHrm  performance mgt   appraisal
Hrm performance mgt appraisalabir hossain
 
Hr policy hrm lecture
Hr policy  hrm lectureHr policy  hrm lecture
Hr policy hrm lectureabir hossain
 

More from abir hossain (20)

Shopping carts payment ethical issue_e-commerce
Shopping carts payment ethical issue_e-commerceShopping carts payment ethical issue_e-commerce
Shopping carts payment ethical issue_e-commerce
 
Electronic commerce
Electronic commerceElectronic commerce
Electronic commerce
 
E commerce online-advertising_email_marketing
E commerce online-advertising_email_marketingE commerce online-advertising_email_marketing
E commerce online-advertising_email_marketing
 
Cmc exercise therapy for back pain
Cmc exercise therapy for back painCmc exercise therapy for back pain
Cmc exercise therapy for back pain
 
Cmc exercise therapy for back pain
Cmc exercise therapy for back painCmc exercise therapy for back pain
Cmc exercise therapy for back pain
 
Cmc exercise therapy for back pain
Cmc exercise therapy for back painCmc exercise therapy for back pain
Cmc exercise therapy for back pain
 
Social media marketing social media analytics
Social media marketing social media analyticsSocial media marketing social media analytics
Social media marketing social media analytics
 
Online advertising mobile marketing ppc_seo
Online advertising mobile marketing ppc_seoOnline advertising mobile marketing ppc_seo
Online advertising mobile marketing ppc_seo
 
E marketing(mail chimp)
E marketing(mail chimp)E marketing(mail chimp)
E marketing(mail chimp)
 
Ob handout social system_Organizational behavior
Ob handout social system_Organizational behavior Ob handout social system_Organizational behavior
Ob handout social system_Organizational behavior
 
Organizational behavior
Organizational behavior Organizational behavior
Organizational behavior
 
principle of management
principle of management principle of management
principle of management
 
Planning
PlanningPlanning
Planning
 
what is management
what is management what is management
what is management
 
Management
Management Management
Management
 
organization
organizationorganization
organization
 
PGDHRM syllabus
PGDHRM syllabusPGDHRM syllabus
PGDHRM syllabus
 
Line staff, responsiblity of hrm lecture_ 02 class
Line   staff, responsiblity of hrm lecture_ 02 classLine   staff, responsiblity of hrm lecture_ 02 class
Line staff, responsiblity of hrm lecture_ 02 class
 
Hrm performance mgt appraisal
Hrm  performance mgt   appraisalHrm  performance mgt   appraisal
Hrm performance mgt appraisal
 
Hr policy hrm lecture
Hr policy  hrm lectureHr policy  hrm lecture
Hr policy hrm lecture
 

Recently uploaded

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 

Recently uploaded (20)

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 

Day1, session iv - spss

  • 1. 1 Data Manipulation and Data Management Day 1, Session IV M. Amir Hossain, Ph.D. January 17, 2016 Transformation Expressions Arithmetic Operations: Following arithmetic operators are available:  + Addition.  - Subtraction.  * Multiplication.  / Division.  ** Exponentiation.
  • 2. 2 Transformation Expressions  No two operators can appear consecutively.  Arithmetic operators cannot be implied. For example, (VAR1)(VAR2) is not a legal specification; you must specify VAR1*VAR2.  To improve readability, blanks (not commas) can be inserted before and after an operator.  To form complex expressions, you can use variables, constants, and functions with arithmetic operators. Transformation Expressions The order of execution is functions first, then exponentiation, then multiplication, division, and unary, and then addition and subtraction. Operators at the same level are executed from left to right. To override the order of operation, use parentheses. Execution begins with the innermost set of parentheses and progresses out.
  • 3. 3 A relation is a logical expression that compares two values using a relational operator. Relational operators are:  EQ or = Equal to.  NE or ~= ¬ = or <> Not equal to.  LT or < Less than.  LE or <= Less than or equal to.  GT or > Greater than.  GE or >= Greater than or equal to. Relational Operators Data Manipulation Commands COMPUTE • COMPUTE target variable = expression Overview • COMPUTE creates new numeric variables or modifies the values of existing variables. The variable named on the left of the equal sign is the target variable. The variables, constants, and functions on the right side of the equal sign form an assignment expression.
  • 4. 4 Data Manipulation Commands Examples • • COMPUTE INCREMENT=SALARY-SALBEGIN. • EXECUTE. • COMPUTE PINCREM=(INCREMENT/SALBEGIN)*100. • EXECUTE. • COMPUTE RAISE=SALARY*0.12. • EXECUTE. • COMPUTE NEWSAL1 = SALARY + SALARY*0.10 • EXECUTE. • COMPUTE NEWSAL2 = SALARY + SALBEGIN*0.10 + EDUC*10 • EXECUTE. RECODE RECODE varlist (value list =value)...(value list=value) [INTO varlist] [/varlist...] Input keywords: LO, LOWEST, HI, HIGHEST, THRU, MISSING, SYSMIS, ELSE Output keywords: COPY, SYSMIS Overview: • RECODE changes, rearranges, or consolidates the values of an existing variable. RECODE can be executed on a value-by-value basis or for a range of values. Where it can be used, RECODE is much more efficient that the series of IF commands that produce the same transformation. With RECODE, you must specify the new values.
  • 5. 5 INTO keyword INTO specifies a target variable to receive recoded values from the original , or source variables. Source variable remain unchanged after the recode. INTO must follow the value specification for the source variables that are being recoded in to the target variables. The number of target variable must equal the number of source variables. Example RECODE SALARY (LO THRU 50000=1)(50001 THRU 75000=2)(75001 THRU HI=3) INTO SALCAT1. EXECUTE.