Appearance
Supported languages & sources
Nomain reads mainframe estates and modern application codebases, and turns each one into a System you can explore and ask about. This page lists what it understands and what it shows you.
Everything Nomain identifies, from a paragraph to an IMS field, can be opened on the System map, cited in an answer as a reference, and traced back to the file and lines it came from.
At a glance
| Family | What Nomain reads | Depth |
|---|---|---|
| Mainframe languages | COBOL, PL/I, Easytrieve / Easyplus | Read in depth |
| Assembler | Assembler (HLASM) source, macro and copy members | One unit per member, with its calls, macros and copy members connected |
| SAS | SAS programs and autocall macro members | One unit per member, with its files, DB2 tables and included members connected, and run from the job steps that name it |
| Embedded sublanguages | EXEC CICS, EXEC SQL (DB2), EXEC DLI and other DL/I calls (IMS) | Read in depth |
| Modern languages | C# / .NET, JavaScript, TypeScript | Read in depth |
| The mainframe around the code | JCL, CICS system definitions, BMS screen maps, DB2 SQL & DDL, IMS DBD, PSB and stage-1 system definition decks, shared VSAM record types, CA-7, Control-M | Read in depth |
| OPC / IBM Z Workload Scheduler | Application exports (.tws, .opc) and JCL library inventories (.json) | Each application read with its operations, predecessors, run cycles and special resources, connected to the jobs it runs |
| Control and SQL members | The members job steps read: sort, IDCAMS, DSN and parameter cards (.ctl), and SQL (.sql) | One unit per member, kept whole and searchable |
| Recognized languages | REXX, CLIST | Recognized and connected, not read in depth |
| Documents | .txt, .md, .pdf, .docx, .xlsx, .xlsm, .xls, .csv, .xml | Searched and quoted in answers |
Mainframe programming languages
COBOL
| Area | Supported |
|---|---|
| Dialect | IBM Enterprise COBOL: a COBOL-85 core extended with COBOL 2002/2014-era features |
| Older source | These clauses from earlier IBM COBOL compilers, which later versions removed, are read too: DATE FORMAT on a data item and the file clauses NOMINAL KEY, ACTUAL KEY, TRACK-AREA, FILE-LIMIT, PROCESSING MODE and APPLY CORE-INDEX |
| Source format | Fixed-format card image (columns 7-72, with sequence and identification areas in columns 73-80), recognized automatically. Columns 1-6 may hold any characters, including a tag that starts with * or /. |
| Numeric usages | COMP-1..5, PACKED-DECIMAL, BINARY, POINTER |
| Modern data | JSON, XML, UTF-8, NATIONAL |
| Copybooks and includes | COPY / REPLACING, including LEADING and TRAILING, with IBM REPLACE semantics, a REPLACE that takes its pairs from COPY members, COPY in the environment division, including one that fills a SPECIAL-NAMES paragraph from a member holding only its clauses, or straight after DATA DIVISION, copybook fragments, and CA-Librarian -INC include cards, so a member assembled that way is linked to everything it includes. A COPY that names a member in a different letter case from its file, such as COPY m1c for M1C.cpy, links to that member. A copybook written as a template, whose data names start with a tag each program fills in, either a colon tag such as :TAG:-AMOUNT or a quoted literal such as 'TAG'-AMOUNT, is read with all its fields. A program that copies it with COPY ... REPLACING ==:TAG:== BY ==ORDER== (or =='TAG'== BY ==ORDER==) has its references to ORDER-AMOUNT linked to the copybook's field, and each program that copies the member under its own prefix gets its own names. Names that a program's REPLACE statement fills in, rather than COPY ... REPLACING, are not linked to the copybook's fields. A group filled by a COPY statement or -INC card in the program is linked to that copybook; one written inside a copybook is not. Paragraphs and sections that a copybook copied into the PROCEDURE DIVISION defines are part of the execution flow of every program that copies it, and show in that flow labelled with their copybook. A paragraph of the program that only the copybook's code reaches, through a PERFORM, PERFORM ... THRU or GO TO, or by control running into or out of the copybook's paragraphs, nested COPY and COPY REPLACING included, counts as reached; the copybook's own paragraphs are never reported as unused for a program that copies them. |
| Other features | Report Writer, Communication Section, CBL / PROCESS compiler directives |
| Control flow | PERFORM ... THRU over a range of sections or paragraphs, however the two ends are mixed, links the performing paragraph to every paragraph in the range. In the execution flow, a PERFORM, GO TO or ALTER shows every IF and EVALUATE condition around it, outermost first, and one in an ELSE branch shows that its IF condition is false, for example IF A AND IF NOT (B). |
| Embedded | EXEC CICS, EXEC SQL (declarations such as DECLARE CURSOR in the WORKING-STORAGE, LINKAGE and LOCAL-STORAGE sections), and IMS DL/I calls, written as EXEC DLI or through CBLTDLI, AIBTDLI or CEETDLI |
| You can open and ask about | Programs, paragraphs, sections, copybooks, declaration members, data definitions, files with their SELECT and FD entries (for a batch program, whether it reads a file, changes it or both), CICS commands and queues |
PL/I
| Area | Supported |
|---|---|
| Dialect | IBM mainframe PL/I |
| Source format | Fixed format, read from column 2 with a carriage-control character (0, 1) in column 1, or from column 1. In an 80-column member, columns 73-80 are the sequence area and are not read. A *PROCESS or %PROCESS statement's MARGINS option is honoured, and the statements themselves, including those continued over several lines or placed before a later procedure, are skipped. A character constant may run on into the next record, and a comment may contain an apostrophe. A file exported with its IEBUPDTE header (./ ADD NAME=...) is read as the member it holds. |
| Structure | External and internal procedures, packages, BEGIN blocks, alternate entries, DECLARE and FILE declarations, user-defined structures |
| Macro statements | %INCLUDE and %XINCLUDE, of one member or a list, each optionally with its library (SYSLIB(MEMBER)) or in parentheses on its own ((MEMBER)); %DECLARE, including a parenthesised list of names (%DCL (A, B) CHAR;) and macro arrays; %name = value;, %IF ... %THEN, %ELSE, %DO; ... %END; groups and %DO loops with %ITERATE and %LEAVE; labelled and null % statements; preprocessor procedures and %ACTIVATE with RESCAN or NORESCAN; the listing statements %PAGE, %SKIP, %PRINT, %NOPRINT and %NOTE. A statement that only references a preprocessor variable or procedure, with or without arguments or in the STATEMENT form, is read when the member declares or activates that name before it. So is an END whose label a preprocessor procedure supplies. It is also read when an included member declares or activates that name, as long as that member is delivered with the source. Macro statements are read, not run: the code in every %IF and %ELSE branch counts towards the System, including a branch the compiler would leave out, such as test or trace code switched off by a % variable. |
| Include members | A member delivered as .inc, or as .cpy when its content is PL/I, is read as a unit of its own, named after the file without its extension, in upper case, so custrec.inc becomes CUSTREC. A program that includes it with %INCLUDE or EXEC SQL INCLUDE is connected to it, as is another member that includes it. When that other member is complete only where a program includes it, the members it includes are connected to that program instead. A program is read with the text of each delivered member in place, as the compiler reads it, so a declaration whose fields continue in a member, or a procedure that one member opens and another closes, is read in full. The declarations and embedded SQL in a member belong to it, and its SQL counts for every program that includes it. A procedure a member holds is also a procedure of every program that includes the member inside one of its own procedures, recorded with the member and the lines it comes from: the program's calls reach it, it shows in the program's execution flow, and it counts as unused only when that program never calls it. A member's OPTIONS(MAIN) procedure, and a member included outside every procedure, stay the member's alone. The EXEC SQL DECLARE ... TABLE in a DCLGEN member is connected to the table it describes. A member that holds only the fields of a structure, which a program places under its own DCL 1, is read as that member too. A member sent as .pli or .pl1 is read as a program. |
| Programs and calls | Every subroutine compiled on its own is a program in the System, whether or not it is OPTIONS(MAIN), including one written for COBOL callers with OPTIONS(COBOL). COBOL and PL/I programs that call it, FETCH statements that load it and job steps that name it are connected to it. Its includes, embedded SQL and the programs it calls show as its own dependencies. A procedure that gives itself a name with EXTERNAL('name') is known by that name. In a package, each exported procedure is a program callers can name, under the EXTERNAL('...') name its export gives it, if any. Procedures a package keeps to itself stay part of the package. A call to an entry declared with EXTERNAL('name') reaches the program of that name, and FETCH ... TITLE('name') reaches the load module it names. A call follows its ENTRY declaration even when that declaration sits in an include member the calling file includes, as long as that member is delivered with the source; otherwise the call goes to the name as written. The execution flow of a program follows its calls: a procedure runs when it is called, not because it follows another procedure in the source. Secondary entry names (ENTRY statements) are not connected to their program for callers in other files. |
| Constants | Character constants with a doubled quote ('IT''S', "SAY ""HI""") or a backslash |
| Embedded | EXEC SQL (DB2), EXEC CICS, and IMS DL/I calls, written as EXEC DLI or through PLITDLI, AIBTDLI or CEETDLI |
Easytrieve / Easyplus
Report-writer programs and macros are read in depth: activities, procedures, reports, file and record layouts, working fields and control flow.
%macroinvocations are shown with their arguments, even when the macro library was not delivered with the source.- Embedded
EXEC SQLis understood as it is in COBOL, so data lineage crosses the language boundary. - Files named
.eztare analyzed as Easytrieve. So are Easytrieve programs delivered as.cbl, a common result of mainframe dataset extraction. A member delivered as.cpyis read as a COBOL copybook. - A job that runs an Easytrieve program is connected to that program's source, and the step's DD statements are connected to the program's files of the same name. The datasets reach the Easytrieve programs from the JCL alone. See JCL for the invocation forms.
Assembler (HLASM)
Assembler members are read as one unit each, named after the member: the file name without its extension, in upper case, so cobdatft.asm becomes COBDATFT. Both letter cases of the extension work. Nomain also reads inside a member, to connect the programs it calls and the macros and copy members it uses.
| Member | Sent as | What you see |
|---|---|---|
| Source | .asm | A program, with the callers that depend on it and the programs and macros it uses |
| Macro | .mac, or .cpy whose content is Assembler, that begins with MACRO | An Assembler macro on the System map |
| Copy member | any other .mac, or .cpy whose content is Assembler, such as a DSECT layout that programs COPY | An Assembler copy member, in its own colour, with no connections of its own |
- COBOL and PL/I programs that
CALLan Assembler program, CICSLINKandXCTL, and JCL steps that run it are connected to it, and the dependency view shows the caller depending on it. See JCL for the invocation forms. A caller in another repository of the same System is connected too. - The programs a member calls are connected as calls from that member, and the dependency view shows them: the
CALLmacro,LINK,XCTL,LOADandATTACHwith a literal program name (EP=), V-type address constants,EXTRNandWXTRN, andEXEC CICS LINKandXCTLwith a quoted program name. A call whose target is only known when the program runs, such as a register, a variable or a field, is not connected. A program that is not delivered in the System still appears, by name. - The macros a member uses are connected to the macro members delivered in the System, and the members it copies with
COPYare connected to those copy members. Macros IBM supplies with the operating system, such asSAVE,RETURN,GETMAINandWTO, are not delivered, so they appear by name only. You can still ask which members use one. A macro a member defines itself gets no connection. - A macro that calls programs or uses other macros passes those on to every member that uses the macro.
- Ask about a member by name, by the text in it or by what it does, and the answer draws on its source.
- Nomain does not break a member down into separate parts. Its sections and instructions are found by reading or searching the member.
- Statements Nomain does not understand are left as text, and one such statement never affects the rest of the member.
- A member exported with its IEBUPDTE header (
./ ADD NAME=...) is read as the member it holds. The same holds for BMS mapsets and IMS definitions. - A caller that names an Assembler module by an entry point or alias different from the member name is not connected.
- Embedded SQL (
EXEC SQL) in a member is not connected to tables, and binderALIASandNAMEcards are not read. .asmand.macfiles are read, and so is a.cpymember whose content is Assembler, in the same way as a.macmember. A.cpymember whose content could also be COBOL is read as a COBOL copybook. A member without an extension is not read. A COBOLCOPYof an Assembler member is not connected.
SAS
SAS programs are read as one unit each, named after the member: the file name without its extension, in upper case, so rptdaily.sas becomes RPTDAILY. Each appears as a program in the SAS language. Both letter cases of the extension work. A member of a SAS autocall macro library is a .sas file too, and is read the same way.
- Ask about a member by name, by the text in it or by what it does, and the answer draws on its source. Each SAS program gets a short explanation of what it does, in SAS terms.
- Data. Each library reference and file reference a program uses appears as one of its files, marked read, write or both. They are found in
SET,MERGE,UPDATE,MODIFY,DATA,INFILEandFILEstatements, in a procedure'sDATA=,OUT=orBASE=, and inPROC SQL. For a library, the SAS data sets the program uses are listed. A file is connected to the DD of the same name in the job step that runs the program, and through it to the dataset that DD names. A dataset therefore shows the SAS programs that read or write it beside the COBOL ones. ALIBNAMEorFILENAMEthat names a dataset, or a quoted dataset name inINFILEorFILE, connects the program to that dataset directly, without a job. Generations of a GDG and members of a library land on one dataset, as they do for JCL. - DB2. A DB2 library (
LIBNAME ref DB2 ... AUTHID=schemaorSCHEMA=schema) makesref.TABLEthe DB2 table of that schema. SQL sent to DB2 throughPROC SQLpass-through (CONNECTION TO DB2 (...),EXECUTE (...) BY DB2) connects the program to the tables in that SQL. The SAS program then appears among a table's users beside the COBOL and PL/I programs. Libraries of other database engines, such as Oracle or ODBC, are not followed. - Included members.
%INCLUDE fileref(member)and%INCLUDE 'dataset(member)'connect the included member. A member that was not delivered appears by name. A program's files and included members appear in its program-level dependencies. - Job steps. A step that runs the SAS procedure (
// EXEC SAS) is connected to the SAS program itsSYSINnames: a library member (//SYSIN DD DSN=LIB(MEMBER)), or in-streamSYSINcode that brings a member in with%INCLUDE. Nomain recognizes the procedure by the name SAS documents,SAS. If your site runs SAS under another procedure name, tell us. When the member was not delivered, the step shows the program by name. The step's DDs reach the program's files when the job and the member are in the same source. A step whoseEXEC PGM=names a SAS member is not connected to it, because a SAS member is never a load module, andEXEC PGM=SASis not connected to any SAS program. From a job in another source of the same System, a step whoseEXEC PGM=names the member can still appear connected to the SAS program. - Not connected. Temporary data (
WORKand one-level names), SAS's own libraries (SASHELP,SASUSERand the like), names built from macro variables or macro calls, data read by in-stream SAS code in the job beyond the members it includes, and anything that needs macro expansion (%LETvalues, macro calls, autocall members). A member that the program a step runs brings in with%INCLUDEis not connected to that step's DDs, though its ownLIBNAMEorFILENAMEdatasets are. A DB2 library assigned inside an included member is not known to the program that includes it. Macros a member defines or calls are found by reading or searching the member. - A SAS member with the same name as a COBOL or other program in the same source is not told apart from it. The System shows them as one program, which can mix parts of both, for example the SAS source with the COBOL program's paragraphs under it. A program that calls a load module named like a SAS member is shown calling the SAS program. Do not share names across languages.
- Only
.sasfiles are read. A member without an extension is not. SAS data sets and catalogs (.sas7bdat,.sas7bcat) are not source and are not read.
Modern application languages
C#, JavaScript and TypeScript are read in depth, with full support for current syntax. Source files are free-form UTF-8.
C# / .NET
| Area | Supported |
|---|---|
| Source | .cs files, and .csproj files for project structure and project-to-project references |
| You can open and ask about | Projects, namespaces, classes, structs, records, interfaces, enums and delegates, down to their methods, constructors, properties, fields and events. Web controllers and minimal-API routes appear as HTTP endpoints. |
| Connections | Calls, reads and writes of fields and properties, inheritance, interface implementation, overrides, using imports, project references, and standard .NET dependency injection, so a call made through an interface leads to the class that implements it |
JavaScript & TypeScript
| Area | Supported |
|---|---|
| Source | .ts, .tsx, .js, .jsx, .mjs, .cjs; imports are followed as your tsconfig.json configures them |
| You can open and ask about | Each file as a module, with its classes, interfaces, enums, type aliases, methods, properties, fields, functions and variables |
| Connections | Calls, reads and writes, inheritance, interface implementation, overrides, import relationships and Angular dependency injection. A front-end HTTP request is linked to the .NET endpoint it targets, so a call from the browser can be traced to the server code that answers it. |
| Not analyzed | Framework HTML templates, such as Angular component templates |
The mainframe around the code
Job control, screen maps, system definitions, database schema and schedules are read in the same depth as the programs, and connected to them.
JCL
z/OS Job Control Language: jobs, steps, cataloged procedures, in-stream and cataloged data, DD statements, datasets and internal-reader job submission. JCL ties programs to datasets and to each other, and its lines count toward a System's lines of code.
Each step is linked to the program it actually runs, and to that program's COBOL, PL/I, Assembler or Easytrieve source. A step that runs the SAS procedure is connected to the SAS program its SYSIN names. Otherwise, a program whose source was not delivered still appears, by name. The invocation forms production shops use are all covered:
| Invocation form | In your JCL |
|---|---|
| Direct invocation | EXEC PGM=name |
| Cataloged procedure | EXEC procname, including the programs the proc itself runs and the one a call passes through a symbolic parameter, such as PROG= |
| TSO terminal monitor | IKJEFT01, IKJEFT1A and IKJEFT1B, with their SYSTSIN input, in-stream or from a control member |
| IMS region controller | EXEC PGM=DFSRRC00 and its PARM= list: the kind of region, the program it runs and the PSB it runs under |
| Hybrid runner procs | DLIDB2 and similar procs, with a member parameter such as MBR=, and the PSB from a PSB= parameter on any procedure |
| Easytrieve runners | The EASYPLUS proc, EXEC PGM=EZTPA00, and the deprecated EZT / EZTCOM aliases, with the step's DDs connected to the program's files |
| SAS runner | EXEC SAS, with the member on SYSIN or brought in by %INCLUDE |
| Link-edit runner procs | PL1LINK / PLILINK, with SYSLIN linkage-editor INCLUDE control cards |
| Internal-reader submission | A member copied to SYSOUT=(,INTRDR), including by IEBGENER |
A step with no name on its EXEC statement is shown as STEP_1, STEP_2 and so on: its position among the steps of its job or cataloged procedure, counted from 1. A step an INCLUDE brings into a job counts with the job's steps, and a member shown on its own numbers its steps from 1. JCL step names cannot contain an underscore, so such a name never matches a step your JCL names, such as STEP10.
Lines that follow a step's statements without a DD statement in front of them are read as that step's in-stream SYSIN data, as z/OS reads them, and DD statements written after the data stay in the step. A step that codes its own SYSIN DD keeps it. When a DD or JOB statement codes a keyword such as DSN, DISP, SPACE or CLASS more than once, the statement is read with the first occurrence.
When a step of a cataloged procedure names its program through a symbolic parameter (EXEC PGM=&PROG, for example), the job step that calls the procedure is connected to the program the call names (EXEC PRFLAUF,PROG=RFE210), or to the procedure's default when the call names none. The DD statements the job adds or overrides for that procedure step, and the procedure step's own, reach the program's files. This needs the job and the procedure in the same source.
Any other program name built from a symbolic parameter, a name starting with & that is only filled in when the job runs, is not resolved: in a job's own EXEC PGM=, or in a procedure that another procedure calls. Such a step still appears with its datasets, DD statements, IMS region type and PSB, but without a program.
JCL written for Control-M can hold AutoEdit variables, such as %%ENV, %%ODATE or %%. to join two parts of a name, which Control-M fills in when it orders the job. Such a member is read in full, with its jobs, steps, DD statements and datasets. A job, step or DD name that holds a variable is shown as written, so a step appears as STEP%%1. A job whose JOB statement name holds a variable is named after its member, so members that share //%%JOBNAME JOB stay separate jobs.
In a member that has a JOB statement, the values the member sets itself with %%SET are filled in, from top to bottom, in the names of datasets, programs, procedures, included members and submitted jobs. After //* %%SET %%ENV=PROD, a dataset written as PROD.%%ENV.DATA is the dataset PROD.PROD.DATA, so the jobs that write and read it are connected. A Control-M statement such as %%SET or %%IF written from column 1, without //* in front, is read the same way.
- A
%%SETinside%%IF,%%ELSEand%%ENDIFcounts. After the block, a value holds only when every branch gives the same one. %%RESOLVE OFFleaves the names after it unresolved until another%%RESOLVEstatement turns resolution back on.- Values that Control-M takes from elsewhere are not filled in: global and library members (
%%GLOBAL,%%LIBSYM,%%INCLIB), the Control-M job definition, and values that a function such as%%CALCDATEcomputes. A program, procedure, included member, submitted job or dataset whose name holds one of them is not resolved, as with a symbolic parameter: the step and its DD statements still appear, without it. - Order and run date variables such as
%%ODATEare never replaced. A dataset namedPROD.SALES.D%%ODATEappears under that name, so the job that writes it and the job that reads it meet on one dataset for every date.
INCLUDE groups
A library member that an INCLUDE MEMBER= statement brings into a job appears on its own, named after the member, with the steps it holds and the programs they run. This covers a .jcl member with no JOB or PROC statement: a JOBLIB concatenation, a set of DD or SET statements, or whole steps. A .prc member is read as the cataloged procedure named after the file, with or without a PROC statement. Each job, step and procedure is connected to the members it includes, including through //JOBLIB INCLUDE and //SYSCHK INCLUDE, and the dependency view shows the job depending on them. A member name built from a value set with // SET earlier in the job is filled in.
Each job that includes a member also holds what the member contains, as z/OS runs it: its steps with the programs they run, and its DD statements, connected to the program of the step they belong to. A value a member sets with // SET fills in the names the job builds from it later, and a member that includes another brings that one in too. Members are taken from the same repository as the job that includes them.
Datasets
For every job, Nomain shows which datasets it reads, which it writes and which it creates or deletes. The job that writes a dataset and the jobs that later read it meet on that dataset, so you can follow a chain from job to dataset to job. You can ask which jobs consume what a job writes, or what is downstream of a file.
- All generations of a generation data group (GDG) appear as one dataset, whether a job names
(+1),(0),(-1)or an absolute generation. All members of a partitioned dataset (a library) appear as that one library. - A dataset name built from a value set with
// SETearlier in the same job, or in a member the job includes, is filled in, so it meets the same dataset as a job that spells the name out. DSN=NULLFILE, likeDUMMY, names no dataset.- A DD that refers back to an earlier DD (
DSN=*.DDNAMEin the same step,DSN=*.STEPNAME.DDNAMEorDSN=*.STEPNAME.PROCSTEPNAME.DDNAME) reads or writes the dataset that DD names, so the step that writes a dataset and the later step that refers back to it meet on it. A generation or library member carries over. A reference to a step or DD that is not earlier in the job, or to a DD that names no dataset (a temporary dataset,DUMMYorSYSOUT), is not followed: the DD appears without a dataset. - A step that only creates or deletes a dataset, for example with
IEFBR14, is shown as creating or deleting it, not as reading or writing it. - Libraries a step loads programs or source from (
STEPLIB,SYSLIBand the IMS region's libraries) are not counted as data the job reads.
When a step runs a batch COBOL program in the System (EXEC PGM=) and the program declares the file the DD is assigned to (SELECT ... ASSIGN TO the DD name), the step reads or writes the dataset as the program uses the file: reading it (READ, START, or a SORT or MERGE that takes records from it), changing it (WRITE, REWRITE, DELETE, or a SORT or MERGE that gives records to it) or both. A step that updates a VSAM file it allocates with DISP=SHR is shown as changing it. In the CardDemo sample, job POSTTRAN writes TRANSACT.VSAM.KSDS and reads and changes ACCTDATA.VSAM.KSDS, both DISP=SHR. The DISP is still shown as written. A change to a program shows in the jobs that run it when their JCL is analyzed again.
The DISP on the DD statement decides the direction when the step's program is not in the System or is not COBOL, when the step calls a cataloged procedure, when the program runs through another program (a TSO batch step, or a SAS or Easytrieve member named in SYSIN), when the program declares the file in a copybook, or when it only opens and closes the file. Four cases are not covered:
- A dataset name filled in from a cataloged procedure's defaults or from the parameters of the calling
EXECstatement is not resolved. Such a DD still appears, without its dataset. - A dataset named in a cataloged procedure's own DD statements appears with that procedure, not with the jobs that run it. DD statements a job adds or overrides for a procedure step count for the job. A reference back to a DD that only the procedure's own statements name is not followed.
- Temporary datasets (
&&NAME) are not shown. - A dataset that appears only in a utility's control statements, for example IDCAMS
DEFINEorREPRO, and not in a DD statement, is not connected to the job.
Control and SQL members
The members a job step reads as input through a DD statement, such as //SYSIN DD DSN=PAY.CTL(PAYSORT1): DFSORT statements, IDCAMS commands, TSO and DSN commands, DB2 SQL run by batch programs such as DSNTEP2, DSNTIAD and DSNTIAUL, and an application's own parameter cards. Name control members .ctl and SQL members .sql. Either letter case is fine.
- Each member is kept whole, as one unit named after the member: the file name without its extension, in upper case, so
paysort1.ctlbecomesPAYSORT1. You can open it, search its text and ask about what it holds, and each member gets a short explanation of what it does. - A job step that reads a member through a DD statement (
DSN=library(member)) is connected to it, also when the member name comes from a parameter of the cataloged procedure the step calls (TSIN=DP110S05). This needs the job, its procedure and the member in the same source. - A step running the TSO terminal monitor runs the programs its
SYSTSINmember names inRUN PROGRAM, and its DD statements reach those programs' files. When one of them is a DB2 batch SQL program such asDSNTEP2,DSNTIADorDSNTIAUL, the step is related to the tables the SQL in itsSYSINmember reads or changes. A statement Nomain cannot read is skipped, and the rest of the member still counts. Each statement ends at the terminator the program is given, bySQLTERMon theRUNcommand or by a--#SET TERMINATORline in the member, asDSNTEP2reads it. A trigger, function or procedure the member creates does not relate the step to the tables in its body, because the step installs it without running it. - The datasets a sort or IDCAMS command reads and writes are not connected. The answer draws on the member's text instead.
- A
.sqlfile outside the mainframe, such as a database script in an application repository, is kept whole the same way when its name could be a member's. Its SQL is not read as DB2. - A
.ddlmember that defines no table, view, alias, index, procedure, database or tablespace is kept whole as a SQL member too, for example one that only loads rows withINSERTor only holdsGRANTstatements. It is related to the tables its own statements read or change, and the job step that runs it is connected to it. A trigger or function it creates can be read there, and the tables in its body are not related to the member.INSERTrows in a member that also defines a table are not read. - Two members with the same name in one System, for example from a production and a test library, are shown as one. Keep member names unique, or deliver one of the libraries.
- Only
.ctl,.sqland.ddlfiles named the way a member can be are kept as members: up to eight letters, digits and@,#or$, starting with a letter or one of those three characters. Sorfsql01.sqlis read and0001_create_customers.sqlis not. A member without an extension, or under another extension such as.cntl,.sysinor.parm, is not read either.
CICS System Definitions
Any CSD file that IBM's DFHCSDUP utility accepts: its EXTRACT output and the input of a DFHCSDUP job alike. Resource groups, and the transaction, file, program and map definitions that make a CICS region run, are read however the file writes them: keywords in any case or abbreviated as IBM allows, attributes in any order, values with any characters and values continued on the next record. Each transaction is linked to the program it starts, so you can ask which program runs a given transaction ID. Program, file, mapset and group names are recognized in upper case, as CICS stores them, whatever case the file uses.
URIMAP, web service, pipeline and TCP/IP service definitions are read too, so you can list a region's URIMAPs and follow its web traffic:
- URIMAP. You see whether it is an outbound endpoint that programs call or an inbound mapping, the address it calls or matches, and whether it is enabled. An inbound URIMAP leads to the transaction, program, or web service and pipeline that receives its requests, and to the TCP/IP service it listens on.
- Web service and pipeline. A web service shows its binding file, its WSDL file and the pipeline it runs in. A pipeline shows its configuration file and its web service directory.
- TCP/IP service. You see its port, its protocol and whether it uses TLS.
- A name defined once per environment group, for example a URIMAP that points at a different host in each group, is shown once per group, each with its own address.
Web services that CICS installs from a pipeline's web service directory are in no CSD file, so Nomain shows the directory but cannot list them. EXEC CICS WEB OPEN and INVOKE SERVICE in a program are not linked to the URIMAP or web service they name. A URIMAP or web service is linked to the transaction, web service, pipeline or TCP/IP service it names only when the same CSD file defines it.
The full text of a system definition can be searched and cited, including its comments and the resource types Nomain does not link, such as transient data queues. Commands other than DEFINE, such as DELETE GROUP or ADD GROUP ... LIST, do not stop a file from being read and stay in that text. Comment records, marked by an asterisk in column 1, are read as comments. A statement Nomain cannot read costs only that statement: the rest of the file is still read, and the statement stays in the searchable text.
BMS Screen Maps
Basic Mapping Support macros (DFHMSD, DFHMDI, DFHMDF). Map sets, maps and their fields are identified, so the 3270 screen layer is visible alongside the programs that drive it. A statement Nomain cannot read costs only that statement: the mapset's other maps and fields are still read. This does not apply when that statement starts a map or the mapset.
A mapset is read from a .bms file, and from a .cpy file whose content is BMS macros, in the same way. Its maps are connected to the programs that send and receive them, and to the CICS system definition of the mapset. A COBOL COPY of the symbolic map that BMS generates from a mapset is not connected to the mapset.
DB2 SQL & DDL
CREATE TABLE, CREATE VIEW, CREATE INDEX, CREATE PROCEDURE, CREATE DATABASE, CREATE TABLESPACE and CREATE ALIAS definitions, GRANT statements on tables and views, plus the embedded EXEC SQL in COBOL, PL/I and Easytrieve. Coverage tracks DB2 for z/OS v12.
- You can open and ask about tables, indexes, stored procedures and schemas. The System map shows them as Table, Column, Index, Stored procedure and Database, where Database is the schema. Storage appears as Storage database and Tablespace, described below. A column and an index belong to their table, and a table or stored procedure named with its schema belongs to that schema's Database. Each one declared in DDL cites the member and lines that declare it.
- Views. A
CREATE VIEWappears as a table marked as a view, linked to each table its query reads. A view over another view is linked to that view. A program that reads a view through embeddedEXEC SQLand writes its schema is linked to the defined view, whichever of the program and the DDL is analyzed first. One that names the view without a schema is linked to it as described below. It is not also shown as depending on the view's base tables: you follow the program to the view, then the view to its tables. A view does not list columns of its own. - Aliases. A
CREATE ALIASappears as a table marked as an alias, linked to the table or view it stands for. A program that uses the alias in embeddedEXEC SQLis linked to the alias, and you follow the alias to its table. An alias for a sequence is not shown. - Privileges. Each user, group or role that a
GRANTnames on a table or view appears as an Authorization ID, includingPUBLIC. It is linked to each table or view it was granted on, with the privileges granted (for exampleSELECT,INSERT,UPDATE,DELETE) and those grantedWITH GRANT OPTION. You can ask who may read or change a table, and which tables a given ID may use. Grants on anything other than tables and views, such as packages, plans or databases, are not read. - Storage. A
CREATE DATABASEappears as a Storage database, and aCREATE TABLESPACEas a Tablespace inside the Storage database itsINclause names. A table'sINclause links the table to where it is stored:IN db.tsto that tablespace,IN tsto tablespacetsin DB2's default databaseDSNDB04, andIN DATABASE dbdirectly to the storage database. ACREATE TABLESPACEwith noINclause is inDSNDB04too. A Storage database is not the schema that qualifies table names, even when they share a name, as in the CardDemo sample where both are calledCARDDEMO. They are two separate elements on the System map and in search: the schema (Database) holds its tables, indexes and procedures, and the Storage database holds its tablespaces. A database namedSALEScan store tables of theFINANCEschema. Each storage element cites its ownCREATEstatement and lines. A tablespace or storage database that a table names but no member declares is shown as referenced, with no definition, until the member that declares it is analyzed. A table with noINclause shows no storage, because the member does not say where DB2 places it. You can ask which tables share a tablespace, what a storage database holds and where a given table is stored. Programs lead to a table and its definition, never to its storage. - DDL members. A
.ddlmember kept the way IBM's batch SQL processorsDSNTEP2andDSNTEP4read it is read as they read it: a line with an asterisk in column 1 is a comment, and a member kept as 80-column cards, with sequence numbers in columns 73-80, is read up to column 72. DDL whose statements run past column 72 is still read in full. - Columns. Each column of a
CREATE TABLEappears under its table with its data type as declared (for exampleDECIMAL(9,2)orCHAR(10) FOR BIT DATA), whether it may be null, and its position. - Index key columns. An index records its key columns in key order, with their direction when declared (for example
ACCT_ID,TXN_TS DESC), and whether it is unique. - You can ask which tables a view reads, which columns a table has and their types, and which indexes start with a given column. The answer cites the DDL.
- A table named with its schema in embedded
EXEC SQLkeeps that schema, and belongs to that schema's Database, even when no DDL was delivered. - Names without a schema. Programs often name a table or view without its schema (
FROM V_OPEN_TXN), while the DDL defines it with one (CREATE VIEW CARDDEMO.V_OPEN_TXN). A COBOL, PL/I or Easytrieve program with embedded SQL, a SAS program that sends SQL to DB2, or a DDL view that names a table or view this way is also linked to the table or view that a DDL member of the same repository defines under that name, in any schema, when exactly one such definition exists there. The program then appears among that view's users and in the dependency view, and following a base table up through the view reaches the program. Nothing is linked when no DDL member of the repository defines the name, or when two or more do, for example the same view in aTESTand aPRODschema: DB2 decides which one a short name means when the program is bound, and Nomain does not guess. A definition in another repository of the System does not count. The entry under the short name stays, so a program can list the same table twice, once by its short name. A name written without quotes is compared in upper case, a quoted name as written, as DB2 does. Repositories analyzed earlier get these links at their next analysis. - Embedded
SELECT,INSERT,UPDATE,DELETE,MERGEandLOCK TABLEstatements relate the program that runs them to the tables they name, and so does the query a cursor is declared for, wherever the cursor is declared. A cursor declared in a copybook relates every program that copies it to those tables. ACALLto a stored procedure relates the program to that procedure. This holds whichever language the SQL is embedded in. - Nomain records what each statement does to each table it names. A table that an
INSERT,UPDATE,DELETEorMERGEchanges is recorded as written. A table that aSELECT, a cursor's query, a subquery, the query of anINSERT ... SELECTor the source of aMERGEreads is recorded as read. A subquery in theVALUESlist of anINSERTis not. A table that plays both roles in one statement is recorded as both. ALOCK TABLEis shown as a lock and aCALLas a call, and neither counts as a read or a write. - A program's relationship to a table lists the operations it performs on it and whether it reads, writes or both. You can ask which programs read a table, which write it and which do both, and the exact statements stay visible for each program. A program whose only access to a table is an
INSERT, aMERGEor aLOCK TABLEstill appears among the programs that use it. - Table, column and cursor names may contain national characters, such as
Ä,Ø,£,@,#or$, in SQL embedded in COBOL and PL/I, in DCLGEN members and in DDL. - DCLGEN members count as table definitions, and each one is shown as describing its table. A table whose
CREATE TABLEwas not delivered still shows its columns, from itsDECLARE ... TABLEdeclaration. - A table that is referenced but defined nowhere in the source is shown as referenced, with no definition, rather than as an empty table.
- Other statements that name a table (
TRUNCATE,RENAME,REFRESH TABLE,LABEL ON,COMMENT ON) do not relate the program to it, and a query does not relate the program to a table it reads only inside a common table expression (WITH). - Storage groups (
CREATE STOGROUP), index spaces, LOB tablespaces and auxiliary tables, partitions, andALTER TABLESPACEandALTER TABLEare not read. SQL kept in members other than DDL members, such as the control members that DB2 batch utilities read (for example a.ctlmember run throughDSNTEP2), is not read. Names are kept as written, as table names are. - A column added later by
ALTER TABLE ... ADD COLUMNis not shown. - Which programs use a given column is not shown, only which programs use the table.
- The DB2 subsystem a program runs against is not recorded, and SQL inside the body of a
CREATE PROCEDUREin DDL is not analyzed.
IMS Definitions
Nomain reads IMS database definitions (.dbd), program specifications (.psb) and stage-1 system definitions (.sysgen, .stage1), and connects them to the programs and jobs that use them.
| From | What you see |
|---|---|
| Database definitions | Each database, with its segments in their hierarchy, their fields and keys, its primary and secondary indexes, and its logical relationships |
| Program specifications (PSBs) | Each PSB, with its PCBs, the databases and segments each one may reach, and whether that access is read-only or allows updates |
| Stage-1 system definitions | The online IMS system the deck defines and each transaction code in it, with the program that processes it and the PSB it runs under |
Stage-1 system definitions
A stage-1 deck is what an IMS team writes to generate an online IMS system, with its APPLCTN, TRANSACT, RTCODE and DATABASE statements. It is what says which transaction runs which program, so an online dialog can be followed from its transaction code to the code that processes it.
- The IMS system and its transactions. The deck's IMS system appears under its IMS system ID, or under the file name when the deck gives none. Each transaction code it defines appears inside it, and the IMS system is linked to the PSBs and IMS databases it defines.
- The program that processes each transaction. For an online application, it is the program named like its PSB. For an application with a generated PSB, it is the program the application names. The transaction depends on that program, on the System map and in dependency analysis, where the relationship reads "processed by". A transaction of a batch message application shows its PSB but no program: the deck does not say which program that region loads, and the JCL that starts the region does.
- What a transaction records. Whether it is conversational and the size of its scratch pad area, its message type, processing mode, parallel limit, class and scheduling type, its PSB, whether it is a Fast Path transaction (exclusive, potential, or a routing code), and the remote system for a transaction routed elsewhere.
- Two decks, two transactions. When two decks define the same transaction code, for example a production and a test IMS system, each keeps its own transaction.
You can ask which program processes a transaction code, which transactions a program serves, or which transactions are conversational, and the answer cites the deck.
DL/I calls
In COBOL and PL/I, every DL/I call is identified, whether it is written as EXEC DLI or as a call to the IMS interface (CBLTDLI, PLITDLI, AIBTDLI or CEETDLI). Each call shows what it does to the database, the segment it names, how it qualifies the search, and which of the program's fields it reads or fills. A field declared in a PL/I %INCLUDE member counts as the program's own, and every program that includes the member points to the same field.
What Nomain connects
- Each program is linked to the PSB it runs with, whether the job that runs it, the program itself, a stage-1 deck or the PSB's name says so. An online program that a stage-1 deck defines is linked to its PSB from that definition, which sharpens which database each of its DL/I calls reaches. A program run under several PSBs is linked to each of them.
- A call that names a segment is linked to it, in the right database, and says whether it reads or updates it.
- The IMS databases and segments a program uses are part of its dependencies, on the System map and in dependency analysis, next to DB2 tables and files. Each such relationship lists the DL/I operations the program performs and whether it reads, writes or both.
You can ask which programs update a given segment, which IMS databases a program uses, or which PSB a program runs with, and the answer cites the code and definitions behind it.
Limits
- Only files with the
.dbdor.psbextension, in either letter case, are read as IMS decks, and only files with the.sysgenor.stage1extension, in either letter case, are read as stage-1 system definitions. - The terminal network and message queue definitions in a stage-1 deck (
TERMINAL,LINE,NAME,MSGQUEUEand similar) are not read. - A deck that uses conditional assembly (
AIF,AGO) is read with the statements of every branch. A model PSB deck that takes its PSB name from the job that assembles it (PSBNAME=&PSBN, set from&SYSPARM) appears once, under its file name, not once per PSB the job generates. - Deliver the PSB library with the programs. Without a program's PSB, some calls cannot be linked to the right database, but each call still shows the segment it names.
- A call that names no segment (an unqualified
GN, aCHKP,SCHDorTERM) is not linked to one, and a call is not linked to the field it qualifies on. - When a program builds the operation while it runs, the operation is left blank rather than guessed.
- A database, segment or PSB whose deck was not delivered, and a program or PSB that a stage-1 deck names but that was not delivered, still appears by name, so the dependency stays visible in a partial delivery. Adding the missing deck, JCL or program completes the links at the next analysis.
Shared VSAM files
Many sites keep several logical tables, such as country codes, currency codes and merchant category codes, in one shared VSAM file, and a key field tells them apart. Without help, Nomain sees such a file as one dataset. To see which program uses which table, add a record-type file to any repository of the System. Its name ends in .recordtypes.json.
For each shared dataset, the file lists:
- the dataset name
- the CICS file names, the batch DD names, or both, that programs open it under
- the key field whose value says which table a record belongs to
- the record types, each with a value and, optionally, a name and a description
json
{
"datasets": [
{
"dataset": "PROD.REFDATA.KSDS",
"cicsFiles": ["REFDATA"],
"ddNames": ["REFFILE"],
"keyField": "REF-TABLE-ID",
"recordTypes": [
{ "value": "CTRY", "name": "Country codes", "description": "ISO country codes and names" },
{ "value": "CURR", "name": "Currency codes" }
]
}
]
}Each record type becomes part of the System, under its dataset, with its key field, value, name and description, and linked to the programs that use it. A site that already keeps record layouts with selection criteria in a file-management tool can write the file from them, because the criterion is the same: a key field equal to a value.
When the System is analyzed, each COBOL program that opens the file under one of the listed CICS file or DD names is linked to the record types whose values reach the key field anywhere in the program. These forms count:
- a literal moved into the key field
- a
VALUEclause - a constant moved from another field
- a condition of the key field set to true
Each link says whether the program reads the table, changes it, or both. For a program that uses more than one table of the file, this is what it does to the file as a whole, so a table it only reads can show as changed.
When Nomain cannot tell the table, it does not guess. The program is linked to the dataset itself and marked as undetermined, with the reason:
- the key is computed when the program runs
- the key is passed in by the calling program
- the key holds a value the record-type file does not list (the value is shown)
- the key field is never set
Rules for the file:
- A file that is not valid JSON or has no
datasetslist, or a dataset entry that lacks its dataset name, its key field, its record types, or both its CICS file and DD names, is skipped whole. The analysis reports which file and why. - A record type without a value is skipped on its own. When a value is listed twice, the first entry is kept.
- DD names and the key field name match in any letter case. Values keep their case.
- A batch file assigned with a device prefix, such as
UT-S-REFFILE, matches the DD name after the prefix.
Limits:
- Only COBOL programs are linked. PL/I, Easytrieve and Assembler programs are not.
- A record type is told by the key field's name and value, not by a byte position in the record.
- Programs are linked when the System is analyzed as a whole, so the record-type file and the programs can be in different repositories of the same System. A repository analyzed on its own shows its record types but links no program to them.
CA-7 Scheduler
Job-scheduling definitions: the dependency trees and trigger relationships that decide when each job runs. They show cross-job flow that JCL alone cannot. Nomain reads the LJOB ... LIST=ALL report listing, the fixed-width text CA-7 prints for a job and its requirements. Only files with the .ca7 extension are read as CA-7 listings.
Each job with its own entry in the listing is connected to the JCL job of the same name, on the System map and in dependency analysis, so you can follow a scheduled job through to its steps and the programs they run. A job named only as a triggered job is not connected. When the JCL is not delivered, the job still appears by name, and delivering the JCL completes the connection at the next analysis.
Control-M Scheduler
Jobs, conditions and triggers, from the XML export format (DEFJOB / EMDEF) or the JSON Automation API format. Nomain accepts these exports with .xml, .json or .controlm file names.
Each job that submits a z/OS member is connected to the JCL job whose JOB statement name matches its member name (MEMNAME), as a CA-7 job is. Dummy jobs, commands and jobs that run a script on a distributed host are not connected. A JCL job whose JOB statement name holds an AutoEdit variable is named after its member, so the Control-M job that submits that member is connected to it. Otherwise, a member name that differs from the JOB statement name, or one that is itself an AutoEdit variable, such as %%JOBNAME, leaves the job unconnected.
OPC / IBM Z Workload Scheduler
Nomain reads two kinds of delivery.
Application exports. The application database as batch-loader control statements: the text the scheduler's batch loader reads, as written by IBM's BCIT unload sample (EQQYCBAG) or by WAPL. Name the file .tws. .opc is accepted too, and the extension can be in upper or lower case.
- Each application in the export can be found by its application id, in any case or with a pattern, and read and explained. Text search reaches every statement in it, including the jobs its operations run.
- A group definition is found by its id too, as an entry of its own.
- Several versions of one application id in an export are kept together as one application. An application id is kept once per System, so when two exports hold the same id, for example a production and a test export, only one of them is kept. The same goes for the export itself when two exports, or an export and a CA-7 listing, have the same file name, in different folders or with different extensions. Send the exports of one environment.
- The export itself is kept whole and searchable, named after the file, and holds its applications, as a CA-7 listing holds its jobs. That includes text that belongs to no application, such as batch-loader commands and options, operator instructions and run cycle groups. A
.twsfile that holds no application at all, for example another scheduler's syntax, is kept whole the same way. - A damaged export, such as a truncated file or an unclosed quote, still keeps every application Nomain can recognize.
- Transfer the export in text mode, so it arrives converted from EBCDIC. A binary transfer is stored but cannot be read.
- Comments are left out of what is kept, and a commented-out statement is not read. Text between a
/*left over from a JCL job and a later comment is treated as commented out.
What Nomain reads inside each application:
- Operations. Each operation appears inside its application with its workstation, operation number, job name and description. An operation that names a job is connected to that job's JCL when the JCL is in the System. When it is not, the job still appears by name and is connected once its JCL is delivered. The match is on the job name the operation gives, which must equal the name on the JOB statement of the JCL. Where a site names the library member differently from the job, the two are not connected.
- Predecessors. What each operation and each application waits for is read, including conditional dependencies with their condition on a status or a return code and how many of a condition's dependencies must hold. Transport time, predecessor selection and whether the dependency is mandatory are kept as written. A predecessor in an application that has not been delivered still appears by name, and is connected once that application's export is in the System, from any export file and repository of the System.
- Run cycles. Each application lists its run cycles as written: name, whether it adds run days or excludes them, the rule or the period and days, the input arrival time, and the dates it is valid from and to. Rules and calendars are not turned into dates.
- Special resources. Operations that need the same special resource meet at one special resource per System, with whether each holds it shared or exclusive and the quantity. This shows which operations can never run alongside each other.
You can ask what runs after an operation, which application runs a job, which applications have a month-end run cycle, or which operations can never run alongside another.
What is not read:
- Special resource definitions (capacity, availability and workstations).
- Automatic dependencies.
- Predecessor time windows. Only the selection rule is kept.
- Which applications belong to a run cycle group. The group's run cycles are listed on the group.
- Workstation types, so a print operation that names a job is also connected to that job.
- A dependency on an earlier run of the same operation or of the same application.
- Operator instructions, JCL variable tables, workstation definitions and the current plan.
JCL library inventories. Exports in the JSON format the scheduler's export tooling produces: each library dataset and the members it holds. Each member is connected to the job read from its JCL, and a member whose JCL was not delivered still appears by name. The inventory holds neither the member source nor the schedule, so it adds to the JCL rather than replacing it.
On the System map, an export appears as Job scheduler config, as a CA-7 listing does, its applications as OPC application, an operation as Job schedule step, and a special resource as Special resource.
Recognized, but not read in depth
These are recognized and connected, so nothing in the runtime topology silently disappears. What their code does is not analyzed.
| Language | What Nomain shows |
|---|---|
| REXX / CLIST | The scripts TSO batch steps run (IKJEFT01 with a SYSTSIN DD), connected to the programs involved |
Documents
Repository documentation (.txt, .md, .pdf, .docx, .xlsx, .xlsm, .xls, .csv, .xml) is read alongside the code, so the agent can search it and quote it in answers next to the code it describes. Plain text, Markdown, PDF and Word are summarized as well as searched; spreadsheets, CSV and XML are kept as they are and searched as data instead, a workbook sheet by sheet and a CSV by its rows. Macros in a macro-enabled workbook are not run, and .xlsb and .ods are not read. An .xml file is read as a Control-M export when its contents are one and as a document otherwise, so the two need not be kept apart by file name. Markdown documents named for a business process are also drawn as process diagrams.
Code pages
Mainframe source extracted with a US, German, Nordic or international EBCDIC code page is read the same way.
- Names in JCL, PL/I, Easytrieve, CA-7, CICS system definitions, BMS screen maps and IMS decks may contain national characters, such as
@,#,$,§,Ä,Æ,ØorÅ. DB2 names follow the DB2 rules above. - Names in COBOL, copybooks and DCLGEN members may contain a national character written as a letter, such as
ÑorÄ, or as£,¥or§, as in the structure DCLGEN names after a DB2 table.@,#and$are not accepted in a COBOL name. - Three kinds of names still accept only
@,#and$among the national characters: PSB, database and transaction names in a stage-1 system definition, the PSB a job step names, and the segment a COBOL or PL/I DL/I call names. A name in one of these places with any other national character is left out, with its link. - PL/I and Easytrieve accept the not sign written as
¬or as^, so¬=and^=both work. - Source files are expected in UTF-8. In a file that is not valid UTF-8, each byte that is not part of a UTF-8 character is read as Windows-1252, the Western single-byte code page mainframe source is usually transferred in. So
Ñ,Ä,Ö,§orékeep their letter, fixed-format columns stay where they were, and the UTF-8 characters around a stray byte keep theirs. - The fallback is Western only. Source in another single-byte code page, such as Cyrillic, Greek, Turkish or Central European, is also read as Windows-1252, so its non-ASCII characters come out as different letters: convert it to UTF-8 before you add it. Rarely, an accented capital followed by a symbol such as
°or§also spells a UTF-8 character and is read as that one character, so convert such a file to UTF-8 too.
When a file isn't recognized
A source file that cannot be read cleanly, for example one with syntax errors, is not dropped. It stays part of the System with as much of its structure as can be recovered, so the map has no hole where it should be, and the rest of the analysis continues.
A file named like source code that holds something else, such as data, a report or documentation, stays in the System as a file once it is added or changed, and no programs or calls are read from it.
What Nomain works out from your code
On top of reading each file, Nomain works out how your estate fits together and produces findings a team can act on.
| Analysis | What it produces |
|---|---|
| Dependencies | Who calls what, which copybooks and includes a program depends on, and how programs relate to the files (and, where you describe them, the logical tables inside a shared VSAM file), DB2 tables and stored procedures, IMS databases and segments, the transactions an online program processes, screens, jobs and schedules around them. What a program does inside a copybook, a PL/I %INCLUDE file or an Easytrieve macro, its SQL and DL/I calls included, counts for every program that includes it. For SAS, a program's files and included members are listed too. For C#, JavaScript and TypeScript, the connections listed for each language. |
| Unused code | Code that appears never to be used, in each repository that has unused code detection on, checked against every repository you have added. In COBOL and PL/I: values a program computes but never uses, paragraphs nothing ever reaches, and copybooks a program includes but never references. In modern application code: methods and functions that nothing in the application ever calls. |
| Explanations | Plain-language explanations of what a program, paragraph, module, class or type declaration does, tied to the exact part of the System they describe so you can check them against the code |
| Business processes | End-to-end business processes, grouped into domains and areas and drawn as step-by-step diagrams with lanes, tasks, events and gateways, each linked to the code that carries them out |