CL

Control Language (CL) for iSeries is supported in the Mainframe dependencies group. Links from a CL file (multiple extensions are supported, e.g. CL, CLLE, etc.) to other files are detected following the statements listed below:

CALL / CALL PGM

The call to CALL or CALL PGM or CALLPGM implies a dependency on a .CL or a .RPG file.

  • CALL file
  • CALL "file"
  • CALL PGM(file)
  • CALL PGM("file")
  • CALLPGM(file)
  • CALLPGM("file")
  • CALL(path)
  • CALL PGM(path)
  • CALLPGM(path)

Where file is the name of a CL or RPG file in the project and path is a combination of library and file like *LIBL/file, *CURLIB/file and LIBNAME/file
*LIBL – Search for the target file name in all libraries and establish the dependency with all matches
*CURLIB – Search for the target file name from the root of the source file path and dependency link will be formed for the matched target
LIBNAME – Search for the folder named LIBNAME from the root of the source file path and get the list of matched target files
In case, LIBNAME is not found during the analysis, then Missing library node named LIBNAME is created

Also, to address this file, you can also use an explicit path notation (no relative path like ../my/parent/file). If no file corresponds to the path, we will mark it as a missing one.

CALLPRC

The call to CALLPRC PRC implies a dependency on all kind of file except .CPY.

  • CALLPRC PRC(file)
  • CALLPRC PRC('file')
  • CALLPRC PRC("file")

Where file is the name of a non-CPY file in the project.
To address this file, you can also use an explicit path notation (no relative path like ../my/parent/file). If no file corresponds to the path, we will mark it as a missing one.

CLRPFM

The call to CLRPFM implies a dependency on an existing .CL file.

  • CLRPFM cl_file
  • CLRPFM +cl_file

Where cl_file is the name of a CL file in the project.

FILE

The call to FILE implies a dependency on an existing .CL file.

  • FILE(cl_file)

Where cl_file is the name of a CL file in the project.

FROMFILE

The call to FROMFILE implies a dependency on an existing .CL file.

  • FROMFILE(cl_file)
Where cl_file is the name of a CL file in the project.

OPNID

The call to OPNID implies a dependency on an existing .CL file.

  • OPNID(cl_file)

Where cl_file is the name of a CL file in the project.

RQSDTA

The call to RQSDTA implies a dependency on a .CL or a .RPG file.

  • RQSDTA('CALL file')

Where file is the name of a CL or  RPG file in the project.

RUNSQL SQLSTM

The call on RUNSQL SQLSTM is used to execute an SQL query. Check the SQL dependencies for more details.

  • RUNSQL SQLSTM('QUERY')

Where QUERY is an SQL query.

SRCMBR

The call to SCRMBR implies a dependency on a .CL file.

  • SRCMBR(cl_file)

Where cl_file is the name of a CL file in the project.

TOFILE

The call to TOFILE implies a dependency on an existing .CL file.

  • TOFILE(cl_file)

Where cl_file is the name of a CL file in the project.