WORKBENCH
USER
MANUAL
VERSION
6.17
COPYRIGHT NOTICE
Copyright 2011. All rights to this publication are reserved. Readers arepermitted to reproduce, store in a retrieval system, or transmit this documentfor internal company/personal use under the condition that it is not for profit.
Any other usage requires prior permission from SystechSoftware Products, Inc., 256 Buli Lane Bolingbrook, Illinois 60490, (630)759-4805.
Systech reserves the right to make changes or improvements tothe software and documentation herein described at any time and without notice.
CONTENTS
SECTION A
COPYRIGHT NOTICE 2
CONTENTS 3
COMMAND CROSS REFERENCE 8
TOPIC CROSS REFERENCE 11
RESERVED VARIABLES 11
PREFACE 13
INTRODUCTION SECTION B
FEATURES 1
COMMANDS SECTION C
ACCEPT (idms) 9
ADD 10
BIND (idms) 11
CALL 12
COMMENTS 13
COMMIT (idms) 14
COMPARE 15
COMPRESS 16
COMPSRC 17
CVTBIN 19
CVTCHAR 20
CVTDEC 21
DB2-CONNECT (db2) 22
DB2-DISCONNECT (db2) 23
DECODE 24
DECOMPRESS 25
DEFAREA 26
DEFINES 27
DELETE 29
DIVIDE xx
DLILINK 30
DUMP/DUMPV 32
DUMPH 33
DYNALLOC xx
DYNCLOSE xx
DYNOPEN xx
EDIT 34
ENCODE 35
ENTRY 30
ERASE (idms) 36
EXEC SQL .... END-EXEC (db2) 37
EXHIBIT 38
FIND (idms) 39
FINISH (idms) 41
GET (idms) 42
GOTO 43
IDMS-CONNECT (idms) 44
IDMS-DISCONNECT (idms) 45
IDMS-IF (idms) 46
IDMS-RETURN (idms) 47
IF 48
IFX 50
KEEP (idms) 51
LOADSRC 52
MASKAND 53
MASKOR 54
MODIFY (idms) 55
MOVE 56
MOVEN xx
MOVEX 57
MULTIPLE xx
OBTAIN (idms) 58
PACK 61
PERFORM 62
PRINT 63
READ 64
READLIB 65
READPAN 66
READPDS 67
READY (idms) 68
RESTART 69
RETURN 70
ROLLBACK (idms) 71
SCAN 72
SCANSTEP 73
SCANTEST 74
SPELL 75
STORE (idms) 76
STRING 77
SUBTRACT 78
SYNC 79
UNPACK 80
UNSTRING 81
WRITE 82
WRITEPDS 83
XREF 84
XREFDSN 85
SAMPLES SECTION D
5 COPY & CHANGE RECORD FORMAT VB TO FB 8
6 COPY & CHANGE RECORD FORMAT FB TO VB 9
7 COPY ONLY SELECTED RECORDS 10
8 COPY & REMOVE SELECTED RECORDS 11
9 COPY & REMOVE SELECTED RECORDS 12
10 COPY & MODIFY DATA IN RECORDS 13
11 COPY & MODIFY DATA IN SELECTED RECORDS 14
16 SELECTIVELY PRINT, DUMP, & COPY FILES 19
17 COMPARE TEST FILES BEFORE & AFTER 20
18 SYNC FILES TO GET MATCHING TEST DATA 21
20 SYNC FILES TO MODIFY DATA 23
21 SYNC FILES TO REMOVE UNMATCHED RECORDS 24
22 SYNC FILES TO PRINT MATCHED SETS 25
23 SYNC FILES TO COMPARE RECORDS 26
25 GENERATE CONTROL CARDS FROM A REPORT 28
26 SCAN RECORDS FOR VALUES IN ANY POSITION 29
27 SCAN/REPLACE DATA ON FILE 30
28 SCAN PROCLIB FOR A PROGRAM 31
29 SCAN/REPLACE TEST DATA PDS LIBRARY 32
30 CROSS REFERENCE AN APPLICATION 33
31 CONVERT NUMERIC BINARY TO CHARACTER 34
32 READ AND REMOVE DUPLICATE RECORDS 35
33 ADD FIELDS INTO THE CENTER OF A RECORD 36
34 SYNC MASTER & PATCH FILE TO MODIFY REC 37
35 COMPARE MST REC FOR THOSE ON A CTL LIST 38
36 COMPARE BUT EXCLUDE DATE FIELD 39
38 COMPARE QUANTITY HISTORY TRACE 41
39 PRT ALL REFERENCES TO A FILE & ITS PGM 42
40 SCAN PROCLIB & PRINT PGM WITH ITS PROC 43
41 READ SEQ FILE & CREATE A PDS FILE 44
42 MERGE ALL MEMBERS TO A SINGLE MEMBER 45
43 INSERT A /*ROUTE CARD IN EACH MEMBER 46
44 DELETE A /*ROUTE CARD IN EACH MEMBER 47
46 COMPARE CONTROL CARD LIBS 49
47 SEND JCL TO PRINTER WITH PAGE EJECTS 50
49 CHECK SPELLING ON TEXT FILE 52
51 LIBRARY SOURCE CODE COMPARE 54
53 CALL USER MODULES FOR PROCESSING 57
58 CROSS REFERENCE ON PANVALET 63
59 SCAN LIBRARIAN FILE FOR VALUES 64
60 SCAN/REPLACE DATA ON FILE 65
61 BUILD A SYSTEM DATASET CROSS REFERENCE 66
62 MASTER FILE WITH VARIABLE TRAILERS 67
63 COPY ONLY SELECTED RECORDS 68
64 ENCRYPT SOURCE CODE FOR SECURITY 69
66 ENCODE AN INDIVIDUAL FIELD 71
67 FB TO A COMPUTED VB FILE 72
71 UNSTRING NAME, ADDRESS, CITY 76
72 IDMS ADS/O SOURCE CODE SCAN 77
73 IDMS RECORD AREA SWEEP PRINTS 78
74 IDMS ADS/O LOAD, MAP, GEN PRINT 80
75 DB2 TABLE EXTRACT AND PRINT 82
76 DB2 EXTRACT AND DELETE SELECTED ROWS 83
77 DB2 EXTRACT, UPDATE, AND COMPARE 84
78 IMS DL1 DATABASE PRINT DUMP 85
79 DB2 PARTIAL TABLE DELETE AND RELOAD 86
80 CONVERT IDMS TO DB2 ROWS 87
81 SYNC PATCH FILE TO MASS UPDATE DB2 ROWS 89
82 PATCH CA-DATACOM DATABASE & COMPARE 90
83 LIST IMS SEGMENTS WITH BAD DATES 93
84 IMS TO DB2 DATA BASE TRANSFER 95
85 LOAD CA-DATACOM TO A DB2 DATA BASE 96
86 DYNAMIC FILE CREATION FROM A LIST 98
ERROR MESSAGES SECTION E
TUTORIAL SECTION F
LESSON 1 - GETTING STARTED 2
LESSON 2 - FILE RECORD PRINTS 4
LESSON 3 - MODIFYING RECORDS 6
LESSON 4 - FILE MOD FROM ANOTHER FILE 8
LESSON 5 - FILE SYNCHRONIZED 10
LESSON 6 - FILE SCANNING 14
LESSON 7 - LIBRARY PROCESSING 16
LESSON 8 - XREF SOURCE CODE 19
LESSON 9 - FILE COMPARES 20
LESSON 10- SYNC COMPARES 21
LESSON 11- LIBRARY COMPARES 22
LESSON 12- FORMATTING SPECIAL REQUESTS 24
INSTALLATION GUIDE SECTION G
SAMPLE RUNS SECTION H
COMMAND CROSS REFERENCE
ACCEPT see cmd section (idms)
ADD 53,55,57,62,64,65,72,74,77,78
COMMENTS (all samples)
COMMIT see cmd section (idms)
COMPARE 17,23,35,36,37,38,46,77
DB2-CONNECT 75,76,77,79,81,84,85
DEFAREA 72,73,74,75,76,77,78,79,80,
DEFINES (all samples)
DB2-DISCONNECT 75,76,77,79,81,84,85
ERASE see cmd section (idms)
EXHIBIT 48,53,55,57,71,72.73,75,77,80,81,82,86,87
EXEC SQL .... END-EXEC 75,76,77,79,80,81,84,85
GET see cmd section (idms)
IDMS-DISCONNECTsee cmd section
IDMS-IF see cmd section
IF 7,8,9,11,12,13,14,15,16,18,20,21,
24,27,30,32,34,35,37,39,40,41,43,44,
45,46,47,51,52,53,54,55,57,58,60,62,
GOTO (all samples)
KEEP see cmd section (idms)
MODIFY see cmd section (idms)
MOVE 5,6,10,11,20,24,25,27,29,32,33,34,
36,37,38,39,40,41,42,43,45,47,51,54,
PRINT 7,13,16,22,27,29,39,60,72,73,79
READ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
16,17,25,26,27,31,32,33,41,48,52,54,
55,56,62,63,66,67,68,69,70,71,76,79
READPDS 28,29,30,39,40,42,43,44,45,46,47,49,
ROLLBACK see cmd section (idms)
SCANTEST 27,29,39,40,41,43,44,45,52,60,67
STORE see cmd section (idms)
SYNC 18,19,20,21,22,23,34,35,36,37,38,
WRITE 1,2,3,4,5,6,7,8,9,10,11,12,16,18,
19,20,21,24,25,27,31,32,33,34,
40,45,47,52,53,54,55,56,57,60,62,
TOPIC CROSS REFERENCE (partial highlights)
DOCUMENTATION IDEA 49
DATA BASE ACCESS 57,73,75,78,82,83,84,85
FILE PRINTS/DUMPS 14,15,16,72,73
DATA ELEMENT CROSS REF 30,58,72,74
DATASET CROSS REFERENCE 30
CONVERSION AIDS 56
TALLY/AUDIT COUNTS 55
RESERVED VARIABLES
COUNTOUT 24
COUNTDEL see cmd section
IDMS-CTRL see cmd section
IDMS-DBKEY see cmd section
IDMS-RECNUM see cmd section
SQL-REASON see cmd section
SQLCOUNT 79
RETURN-CODE 53
VAR 62
***See individual command explanations in section II.
PREFACE
This publication provides the syntax and a brief descriptionof the functions and commands used in the Workbench(tm) Programmer ProductivityAid utility. It is intended as a reference and teaching guide for all users.Prior knowledge of IBM OS/MVS is assumed.
We suggest that first time users of Workbench(tm) browse the Tutorial Lessons(Section F ) before reviewing the command syntax. Numerous samples are given inthe sample section to cover the common uses. A topic & command crossreference is provided to locate usage in the samples. Your comments andsuggestions are welcome. Please write to the address at the beginning of thismanual.