SlideShare une entreprise Scribd logo
1  sur  18
11/01/16 @ 2013 IBM Corporation 1
Informix 4GL
By: Deepak Baranwal
11/01/16 @ 2013 IBM Corporation 2
Introduction
 INFORMIX-4GL consists of a suite of tools that allow you
to efficiently produce complex interactive database
applications. Using the 4GL language, you can quickly
write sophisticated, portable, forms-driven, full-screen
applications for data entry, data lookup and display, and
report generation.
 The 4GL development environment provides all the tools
necessary to design screen forms, construct and
manage program modules, and compile source
modules.
11/01/16 @ 2013 IBM Corporation 3
Compatibility and Migration
 You can easily use applications developed
with an earlier version of 4GL, such as
version 4.0 or 4.1, with this 6.0 version of
4GL. Also, if you have 4GL applications
written for the Windows environment, you can
compile and run the applications in the UNIX
environment also.
11/01/16 @ 2013 IBM Corporation 4
What is 4GL?
 4GL is a full-featured, general-purpose, fourth-generation
programming language with special facilities for producing
the following:
 Database query and database management using the
Structured Query Language (SQL).
 Reports from a database or other data.
 Form- and menu-based multi-user applications.
 These special features make 4GL especially well-suited to
developing large database applications.
What is Informix 4GL
 Also known as I4GL, is a fourth- generation
application development language to create
custom database management applications
that access Informix databases.
11/01/16 @ 2013 IBM Corporation 6
Interfaces of INFORMIX-4GL
 INFORMIX-4GL have four primary interfaces to other
software:
 Accessing a database through a database engine.
 Communicating with users through a terminal.
 Accessing sequential files through the host operating
system.
 Generating reports that can then be sent to several
destinations.
11/01/16 @ 2013 IBM Corporation 7
The INFORMIX-4GL Language
 As a programming language, 4GL has several important
features:
 It is a procedural language, with facilities for structured
programming.
 It is a nonprocedural (“fourth-generation”) language with
regard to:
 Database access
 Reports
 Form-based user interaction
 It is C-like in design, but much easier to read, write, and
support.
11/01/16 @ 2013 IBM Corporation 8
A Structured, Procedural Language
 4GL is a general-purpose programming language for
creating structured programs, the way you might use
Pascal, C or COBOL. Like these languages, 4GL offer
statements you use to perform the following tasks:
 Declare variables of different types
 Calculate values and assign them into variables
 Declare functions
 Apply functions to data
 Display the contents of variables on the screen
 Also like other languages, 4GL has control statements you
use to define choices, loops, and statement blocks of code.
11/01/16 @ 2013 IBM Corporation 9
Sample Program …
DEFINE given, product FLOAT , power INTEGER
MAIN
PROMPT "Enter a decimal number: " FOR given
LET product = given
DISPLAY " Exponent value"
FOR power = 2 TO 4
LET product = product * given
DISPLAY power, product
END FOR
SLEEP 5
END MAIN
11/01/16 @ 2013 IBM Corporation 10
A Nonprocedural, Fourth-Generation Language
 4GL is a nonprocedural, or “fourth generation” language
in three important areas:
 Database access
 Report generation
 User interaction
 In these areas you specify what is to be done, while
 4GL (or the database engine) takes care of the actual
sequence of events.
11/01/16 @ 2013 IBM Corporation 11
Database Access
FUNCTION update_rec(Rec1, Rec2)
DEFINE Rec1 FLOAT ,Rec2 CHAR(3)
UPDATE Record
SET unit1 = (1+Rec1)
WHERE unit2 = Rec2
RETURN unit3
END FUNCTION
11/01/16 @ 2013 IBM Corporation 12
Program Source Files - Program Source Files
 Each source file usually reflects a self-contained unit of
program logic; source files are sometimes called source
modules.
 Execution of any program begins with a special, required
program block named MAIN. The source module that
contains MAIN is called the main module.
MAIN
CALL func()
END MAIN
FUNCTION func()
DISPLAY "Hello, world!"
END FUNCTION
11/01/16 @ 2013 IBM Corporation 13
Continued ...
 The Globals File – In 4GL programs, global
variables (variables available to more than
one source module) are declared in a globals
file and referenced through the GLOBALS
statement by each 4GL module that uses
them. For more information on local and
global variables.
11/01/16 @ 2013 IBM Corporation 14
Steps to create .4ge binary from .4gl code
4gl command line compilation :
C4gl *.4gl –o *.4ge
*.4gl *.c *.o *.4ge
C compiler Native Compiler Linker
11/01/16 @ 2013 IBM Corporation 15
Creating 4GL Reports
 A report is a display of data. A well-designed report is arranged so
that the reader can easily pick out the important facts, such as
column totals or sub-totals. The data can be shown on a screen.
 DataBase Report Driver Report Formatter Report
 The Report Driver : The part of a program that generates the rows
of report data (also known as input records) is called the report
driver.
 In 4GL, the actions of a report driver are as follows:
1. Use the START REPORT statement to initialize each report
to be produced.
2. Whenever a row of report data is available, use OUTPUT
TO REPORT to send it to the report formatter.
3. When the last row has been sent, use FINISH REPORT to
end the report.
11/01/16 @ 2013 IBM Corporation 16
Forms
 A form is a fixed arrangement of fields and labels, that is designed
to display the data items.
 Defining a Form: Two steps are involved in creating a form:
1. Specify the contents of a form in a form specification file, an
ASCII file you create with any text editor capable of generating
ASCII text. Form specifications should be given the extension .per.
2. Compile the form specification. Compiled forms are usually
given the extension .frm.
 The FORM4GL utility program is used to create .frm files. Once
compiled, a 4GL form can be used by any 4GL program.
11/01/16 @ 2013 IBM Corporation 17
Form Screen …
11/01/16 @ 2013 IBM Corporation 18
Thanks a lot !

Contenu connexe

Tendances

4 evolution-of-programming-languages
4 evolution-of-programming-languages4 evolution-of-programming-languages
4 evolution-of-programming-languagesRohit Shrivastava
 
Technical Seminar Topic on Google glass
Technical Seminar Topic on Google glassTechnical Seminar Topic on Google glass
Technical Seminar Topic on Google glassRohit Agrawal
 
Computer Networks Lab File
Computer Networks Lab FileComputer Networks Lab File
Computer Networks Lab FileKandarp Tiwari
 
Lesson 1 - Introduction to Programming .pdf
Lesson 1 - Introduction to Programming .pdfLesson 1 - Introduction to Programming .pdf
Lesson 1 - Introduction to Programming .pdfROWELL MARQUINA
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languagespy7rjs
 
Machine language
Machine languageMachine language
Machine languageRipal Dhruv
 
LCE13: Android Graphics Upstreaming
LCE13: Android Graphics UpstreamingLCE13: Android Graphics Upstreaming
LCE13: Android Graphics UpstreamingLinaro
 
Operating systems By Awais
Operating systems By AwaisOperating systems By Awais
Operating systems By AwaisAwaisch3
 
Logical programming languages and functional programming languages
Logical programming languages and functional programming languagesLogical programming languages and functional programming languages
Logical programming languages and functional programming languagesnahianzarif
 
Comparison of OS
Comparison of OSComparison of OS
Comparison of OSJaswanth R
 
Tizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan Driver
Tizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan DriverTizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan Driver
Tizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan DriverRyo Jin
 
Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-Krishna Sai
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial pptRehna Renu
 
Programming languages
Programming languagesProgramming languages
Programming languagesvito_carleone
 

Tendances (20)

4 evolution-of-programming-languages
4 evolution-of-programming-languages4 evolution-of-programming-languages
4 evolution-of-programming-languages
 
Technical Seminar Topic on Google glass
Technical Seminar Topic on Google glassTechnical Seminar Topic on Google glass
Technical Seminar Topic on Google glass
 
Computer Networks Lab File
Computer Networks Lab FileComputer Networks Lab File
Computer Networks Lab File
 
How We Test Linux
How We Test LinuxHow We Test Linux
How We Test Linux
 
Phone gap
Phone gapPhone gap
Phone gap
 
Lesson 1 - Introduction to Programming .pdf
Lesson 1 - Introduction to Programming .pdfLesson 1 - Introduction to Programming .pdf
Lesson 1 - Introduction to Programming .pdf
 
Generations Of Programming Languages
Generations Of Programming LanguagesGenerations Of Programming Languages
Generations Of Programming Languages
 
Machine language
Machine languageMachine language
Machine language
 
LCE13: Android Graphics Upstreaming
LCE13: Android Graphics UpstreamingLCE13: Android Graphics Upstreaming
LCE13: Android Graphics Upstreaming
 
Operating systems By Awais
Operating systems By AwaisOperating systems By Awais
Operating systems By Awais
 
Logical programming languages and functional programming languages
Logical programming languages and functional programming languagesLogical programming languages and functional programming languages
Logical programming languages and functional programming languages
 
Comparison of OS
Comparison of OSComparison of OS
Comparison of OS
 
Evolution of Android Version and their Features
Evolution of Android Version and their FeaturesEvolution of Android Version and their Features
Evolution of Android Version and their Features
 
Tizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan Driver
Tizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan DriverTizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan Driver
Tizen 3.0's Window System Integration Layer of OpenGLES/EGL & Vulkan Driver
 
Mobile platforms
Mobile platformsMobile platforms
Mobile platforms
 
Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-Principles of-programming-languages-lecture-notes-
Principles of-programming-languages-lecture-notes-
 
Mac Operating System
Mac Operating SystemMac Operating System
Mac Operating System
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial ppt
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Embedded Android : System Development - Part III (Audio / Video HAL)
Embedded Android : System Development - Part III (Audio / Video HAL)Embedded Android : System Development - Part III (Audio / Video HAL)
Embedded Android : System Development - Part III (Audio / Video HAL)
 

Similaire à Build Database Apps Fast with Informix 4GL

Computer Software and It's Development
Computer Software and It's DevelopmentComputer Software and It's Development
Computer Software and It's DevelopmentRabin BK
 
INTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdf
INTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdfINTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdf
INTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdfKakai Catalan
 
Third and fourth generation programming language
Third and fourth generation programming languageThird and fourth generation programming language
Third and fourth generation programming languageomeed
 
Programming language
Programming languageProgramming language
Programming languageDhani Ahmad
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programmingAzmiah Mahmud
 
Programming languages and paradigms
Programming languages and paradigmsProgramming languages and paradigms
Programming languages and paradigmsJohn Paul Hallasgo
 
ITELOG113_CHAPTER_I_Introduction_to_Computing.pptx
ITELOG113_CHAPTER_I_Introduction_to_Computing.pptxITELOG113_CHAPTER_I_Introduction_to_Computing.pptx
ITELOG113_CHAPTER_I_Introduction_to_Computing.pptxMarkJarusTTalanquine
 
A Project Report on Insurance System with Tracking Manager
 A Project Report on Insurance System with Tracking Manager  A Project Report on Insurance System with Tracking Manager
A Project Report on Insurance System with Tracking Manager Sachin Kariyattin
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxChewe Lulembo
 
Programing languages
Programing languagesPrograming languages
Programing languagesDanyal Ahmad
 
Plcopen xml exchange
Plcopen xml exchangePlcopen xml exchange
Plcopen xml exchangeKelvin Huynh
 
Introduction to programming principles languages
Introduction to programming principles languagesIntroduction to programming principles languages
Introduction to programming principles languagesFrankie Jones
 
Basic of oracle application Login steps
Basic of oracle application Login stepsBasic of oracle application Login steps
Basic of oracle application Login stepsGirishchandra Darvesh
 

Similaire à Build Database Apps Fast with Informix 4GL (20)

WEBSITE DEVELOPMENT
WEBSITE DEVELOPMENTWEBSITE DEVELOPMENT
WEBSITE DEVELOPMENT
 
chap004.ppt
chap004.pptchap004.ppt
chap004.ppt
 
Computer Software and It's Development
Computer Software and It's DevelopmentComputer Software and It's Development
Computer Software and It's Development
 
INTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdf
INTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdfINTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdf
INTRODUCTION TO SOFTWARE, PROGRAMMING LANGUAGES.pdf
 
Informix4gl status
Informix4gl statusInformix4gl status
Informix4gl status
 
Third and fourth generation programming language
Third and fourth generation programming languageThird and fourth generation programming language
Third and fourth generation programming language
 
Programming language
Programming languageProgramming language
Programming language
 
Rise of software
Rise of softwareRise of software
Rise of software
 
Ict topic 5
Ict topic 5Ict topic 5
Ict topic 5
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
 
Programming languages and paradigms
Programming languages and paradigmsProgramming languages and paradigms
Programming languages and paradigms
 
ITELOG113_CHAPTER_I_Introduction_to_Computing.pptx
ITELOG113_CHAPTER_I_Introduction_to_Computing.pptxITELOG113_CHAPTER_I_Introduction_to_Computing.pptx
ITELOG113_CHAPTER_I_Introduction_to_Computing.pptx
 
A Project Report on Insurance System with Tracking Manager
 A Project Report on Insurance System with Tracking Manager  A Project Report on Insurance System with Tracking Manager
A Project Report on Insurance System with Tracking Manager
 
Lecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptxLecture_1_Introduction_to_Programming.pptx
Lecture_1_Introduction_to_Programming.pptx
 
Programing languages
Programing languagesPrograming languages
Programing languages
 
Plcopen xml exchange
Plcopen xml exchangePlcopen xml exchange
Plcopen xml exchange
 
Introduction to programming principles languages
Introduction to programming principles languagesIntroduction to programming principles languages
Introduction to programming principles languages
 
Net Interview questions
Net Interview questionsNet Interview questions
Net Interview questions
 
Basic of Oracle Application
Basic of Oracle ApplicationBasic of Oracle Application
Basic of Oracle Application
 
Basic of oracle application Login steps
Basic of oracle application Login stepsBasic of oracle application Login steps
Basic of oracle application Login steps
 

Dernier

Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 

Dernier (20)

Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 

Build Database Apps Fast with Informix 4GL

  • 1. 11/01/16 @ 2013 IBM Corporation 1 Informix 4GL By: Deepak Baranwal
  • 2. 11/01/16 @ 2013 IBM Corporation 2 Introduction  INFORMIX-4GL consists of a suite of tools that allow you to efficiently produce complex interactive database applications. Using the 4GL language, you can quickly write sophisticated, portable, forms-driven, full-screen applications for data entry, data lookup and display, and report generation.  The 4GL development environment provides all the tools necessary to design screen forms, construct and manage program modules, and compile source modules.
  • 3. 11/01/16 @ 2013 IBM Corporation 3 Compatibility and Migration  You can easily use applications developed with an earlier version of 4GL, such as version 4.0 or 4.1, with this 6.0 version of 4GL. Also, if you have 4GL applications written for the Windows environment, you can compile and run the applications in the UNIX environment also.
  • 4. 11/01/16 @ 2013 IBM Corporation 4 What is 4GL?  4GL is a full-featured, general-purpose, fourth-generation programming language with special facilities for producing the following:  Database query and database management using the Structured Query Language (SQL).  Reports from a database or other data.  Form- and menu-based multi-user applications.  These special features make 4GL especially well-suited to developing large database applications.
  • 5. What is Informix 4GL  Also known as I4GL, is a fourth- generation application development language to create custom database management applications that access Informix databases.
  • 6. 11/01/16 @ 2013 IBM Corporation 6 Interfaces of INFORMIX-4GL  INFORMIX-4GL have four primary interfaces to other software:  Accessing a database through a database engine.  Communicating with users through a terminal.  Accessing sequential files through the host operating system.  Generating reports that can then be sent to several destinations.
  • 7. 11/01/16 @ 2013 IBM Corporation 7 The INFORMIX-4GL Language  As a programming language, 4GL has several important features:  It is a procedural language, with facilities for structured programming.  It is a nonprocedural (“fourth-generation”) language with regard to:  Database access  Reports  Form-based user interaction  It is C-like in design, but much easier to read, write, and support.
  • 8. 11/01/16 @ 2013 IBM Corporation 8 A Structured, Procedural Language  4GL is a general-purpose programming language for creating structured programs, the way you might use Pascal, C or COBOL. Like these languages, 4GL offer statements you use to perform the following tasks:  Declare variables of different types  Calculate values and assign them into variables  Declare functions  Apply functions to data  Display the contents of variables on the screen  Also like other languages, 4GL has control statements you use to define choices, loops, and statement blocks of code.
  • 9. 11/01/16 @ 2013 IBM Corporation 9 Sample Program … DEFINE given, product FLOAT , power INTEGER MAIN PROMPT "Enter a decimal number: " FOR given LET product = given DISPLAY " Exponent value" FOR power = 2 TO 4 LET product = product * given DISPLAY power, product END FOR SLEEP 5 END MAIN
  • 10. 11/01/16 @ 2013 IBM Corporation 10 A Nonprocedural, Fourth-Generation Language  4GL is a nonprocedural, or “fourth generation” language in three important areas:  Database access  Report generation  User interaction  In these areas you specify what is to be done, while  4GL (or the database engine) takes care of the actual sequence of events.
  • 11. 11/01/16 @ 2013 IBM Corporation 11 Database Access FUNCTION update_rec(Rec1, Rec2) DEFINE Rec1 FLOAT ,Rec2 CHAR(3) UPDATE Record SET unit1 = (1+Rec1) WHERE unit2 = Rec2 RETURN unit3 END FUNCTION
  • 12. 11/01/16 @ 2013 IBM Corporation 12 Program Source Files - Program Source Files  Each source file usually reflects a self-contained unit of program logic; source files are sometimes called source modules.  Execution of any program begins with a special, required program block named MAIN. The source module that contains MAIN is called the main module. MAIN CALL func() END MAIN FUNCTION func() DISPLAY "Hello, world!" END FUNCTION
  • 13. 11/01/16 @ 2013 IBM Corporation 13 Continued ...  The Globals File – In 4GL programs, global variables (variables available to more than one source module) are declared in a globals file and referenced through the GLOBALS statement by each 4GL module that uses them. For more information on local and global variables.
  • 14. 11/01/16 @ 2013 IBM Corporation 14 Steps to create .4ge binary from .4gl code 4gl command line compilation : C4gl *.4gl –o *.4ge *.4gl *.c *.o *.4ge C compiler Native Compiler Linker
  • 15. 11/01/16 @ 2013 IBM Corporation 15 Creating 4GL Reports  A report is a display of data. A well-designed report is arranged so that the reader can easily pick out the important facts, such as column totals or sub-totals. The data can be shown on a screen.  DataBase Report Driver Report Formatter Report  The Report Driver : The part of a program that generates the rows of report data (also known as input records) is called the report driver.  In 4GL, the actions of a report driver are as follows: 1. Use the START REPORT statement to initialize each report to be produced. 2. Whenever a row of report data is available, use OUTPUT TO REPORT to send it to the report formatter. 3. When the last row has been sent, use FINISH REPORT to end the report.
  • 16. 11/01/16 @ 2013 IBM Corporation 16 Forms  A form is a fixed arrangement of fields and labels, that is designed to display the data items.  Defining a Form: Two steps are involved in creating a form: 1. Specify the contents of a form in a form specification file, an ASCII file you create with any text editor capable of generating ASCII text. Form specifications should be given the extension .per. 2. Compile the form specification. Compiled forms are usually given the extension .frm.  The FORM4GL utility program is used to create .frm files. Once compiled, a 4GL form can be used by any 4GL program.
  • 17. 11/01/16 @ 2013 IBM Corporation 17 Form Screen …
  • 18. 11/01/16 @ 2013 IBM Corporation 18 Thanks a lot !