Home Page of Oakwood Computing Ltdhome contact us

about Oakwood Computing Ltd
new recruits and graduate training schemes
programming languages, report and file manipulation utilities
z/OS, OS/390, MVS, CICS, DB2, IMS, ISPF courses
UNIX, Linux, VSE courses
Oakwood Computing Ltd
1 Dornton Road
South Croydon
Surrey CR2 7DR
UK
Tel: +44 (0) 20 8686 7266
courses@oakwoodcomputing.co.uk
Updated 11 November, 2003

 

Using SELCOPY

Duration: 2 days

Audience: Programmers and operations support staff who need to read and/or modify SELCOPY programs

Prequisites: Good working knowledge of a programming language

The DB2 and IMS sections are optional

Objectives: Top Contents

On successful completion of this course each student will be able to:

* write the JCL needed to run a SELCOPY job
* interpret error messages from SELCOPY
* write statements which will access data from a 'card' deck, tape, or disk dataset
* write statements which will print a dataset
* write statements which will format a report
* use the WORK area to create long records
* write IF statements which will allow SELCOPY to select records
* scan data for a variable-position string
* write instructions which will modify fields
* write instructions which will perform arithmetic
* write instructions which will update a VSAM dataset
* arrange control statements into subroutines and use the PERFORM statement
* write instructions which can access the system date
* write instructions which can access a passed parameter

* write instructions which will access and process an IMS database

* write instructions which will access and process a DB2 table

Contents: Top Objectives

SELCOPY Overview
How SELCOPY handles records; control statement syntax; coding comments, comments in summary; continuation symbol; input and output files, JCL requirements; error messages; sample jobs and output; OPTION parameters; READ, WRITE, CAT.

Printing datasets
Printing records; REPORT; HEAD, changing the heading; DATE; LINE; SPACE.

Processing records
IF statement; THEN, ELSE, THENIF, ELSEIF; POS, variable position data, column ranges, DIFF; using multiple @ pointers; compound conditions, AND/OR; overwriting bytes, MOD; defining and using workareas; extracting records from datasets; creating long records; STOPAFT, INCOUNT, EOF.

Arithmetic
Numeric data: packed, binary, character; ADD, SUB, MULT, DIV; using literals; packing and unpacking data; converting data, CVxx statements; using floating point values.

Programming with SELCOPY
Subroutines; GOTO; updating VSAM files, POS FT, POS RETVSAM, BWD, FWD; processing the date; passing parameters, PARM; dynamically allocated datasets; calling programs; setting return codes; Boolean statements, OR, XOR, AND, and their uses; EQU; random data generation; TRAN options.

Using databases
Accessing IMS databases; using the PSB; issuing DL/1 calls, obtaining feedback information; accessing DB2; reading, deleting, updating, inserting rows.

Top Objectives Contents