DCL Programming Hands-on Session

08/28/2004


Click here to start


Table of Contents

DCL Programming Hands-on Session

This presentation is intended to be displayed or printed in the “Notes View” so it reads like a text book.

Agenda - Introduction

Agenda - Introduction, Cont’d

Agenda - Introduction, Cont’d

Agenda - Intermediate

Agenda - Intermediate, Cont’d

Agenda - Advanced

Agenda - Advanced, Cont’d

DCL - Programming?

DCL Command Elements

DCL Verbs

DCL Verbs, Cont’d

More Foreign Commands

DCL$PATH Caveat

DCL$PATH Caveat

DCL$PATH Caveat

Command Qualifiers

Non-positional Qualifiers

Positional Qualifiers

Common Qualifiers

DCL Statement Elements

Assignment Statements

Assignment Statements

String Length Limitations

Assignment Statements

Assignment Statements

Assignment Statements

Assignment Statements

Assignment Statements

Assignment Statements

Assignment Statements

Foreign Commands

Displaying Symbol Values

Displaying Symbol Values

Conditional Expressions

Conditional Expressions

Conditional Expressions

Conditional Expressions

Conditional Expressions

Conditional Expressions

Conditional Expressions

Labels, GOTO

GOSUB, RETURN

SUBROUTINE - ENDSUB...

External Procedures

Parameters

Parameters, Cont’d

Parameters, Cont’d

Parameters, Cont’d

Data for Programs (“Image Data”)

Logical Names

Logical Names

Logical Names

Logical Names

Logical Names

Logical Names

Logical Names

Logical Names

Logical Names

Common Lexical Functions

Common Lexical Functions

Common Lexical Functions

Common Lexical Functions

Common Lexical Functions

Common Lexical Functions

Common Lexical Functions

Common Lexical Functions

Common Lexical Functions

Recurring Batch Jobs

Daily Batch Jobs

Weekly Batch Jobs

SUBMIT/AFTER

Select Tasks by Day

Select Monthly Tasks by Day

Select Last Day of the Month

Select Yearly Tasks by Date

Q / A

Break Time !

Agenda - Intermediate

Agenda - Intermediate, Cont’d

More Internal Subroutines

Why CALL?

Searching for Files

File Search Loops

Multiple F$SEARCH Streams

File I/O Statements

File I/O - OPEN

File I/O - READ

File I/O - WRITE

File I/O - CLOSE

Process Permanent Files (PPFs)

Process Permanent Files (PPFs)

Process Permanent Files (PPFs)

Process Permanent Files (PPFs)

Process Permanent Files (PPFs)

File I/O - READ Loops

Hands-on Exercise

Hands-on Exercise

Hands-on Exercise

Hands-on Exercise

Hands-on Exercise

Hands-on Exercise

Parse - F$ELEMENT()

String Parsing Loops

Symbol Substitution

“Apostrophe” Substitution

Ampersand Substitution

Symbol Substitution

Symbol Substitution

Symbol Substitution - Examples

Symbol Substitution - Examples

Symbol “Scope”

Symbol “Scope”

String Operations

String Operations

String Operations

String Operations

DCL “Arrays”

Integer Operations

Boolean Operations

Logical Operations

“Result Codes”

“Result Codes”

“Result Codes”

Error Trapping

Error Trapping

Error Trapping

Handling Errors

Lexical - F$TRNLNM

Lexical - F$ENVIRONMENT

Lexical - F$ENVIRONMENT

Lexical - F$PARSE

Lexical - F$PARSE

Lexical - F$PARSE

Lexical - F$PARSE

Lexical - F$PARSE

Lexical - F$GETQUI

Lexical - F$GETQUI

Lexical - F$GETQUI

Lexical - F$GETQUI

Lexical - F$GETQUI

Lexical - F$GETQUI

F$GETQUI - Loop

F$GETQUI - Loop

F$GETQUI - Caveat

Lexical - F$CVTIME

Lexical - F$EXTRACT

Lexical - F$GETDVI

Lexical - F$EDIT

Lexical - F$GETJPI

Lexical - F$GETJPI

Lexical - F$GETJPI

Lexical - F$GETSYI

F$CONTEXT and F$PID

F$CONTEXT and F$PID

F$CONTEXT and F$PID

Other Lexical Functions

Q & A

Break Time !

Agenda - Advanced

Agenda - Advanced, Cont’d

Logical Name Table Search Order

Logical Name Table Search Order

Logical Name Table Search Order

Lexical Function - F$TYPE()

Lexical Function - F$TYPE() Examples

F$CONTEXT(), F$PID() Loops

Using F$CSID() and F$GETSYI()

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

PIPE

Hands-on Exercise

Hands-on Exercise

Hands-on Exercise

Hands-on Exercise

Hands-on Exercise

Hands-on Exercise

PIPE: Command Output -> Symbol

PIPE: Symbols in Image Data

PIPE: File List for ZIP from DIRECTORY

Q & A

Thank You!

Thank You!

PPT Slide

Email: djesys@earthlink.net

Home Page: http://www.djesys.com/