Basic Commands: Difference between revisions

From Try-AS/400
Jump to navigation Jump to search
(chgpf)
No edit summary
Line 120: Line 120:
| Change Physical File. Allows to set file-specific flags without recompile, and easy recompile of existing PFs with new or changed fields. Includes a pretty good copy routine, so data isn't lost and if it would, chgpf warns with an inquiry message.
| Change Physical File. Allows to set file-specific flags without recompile, and easy recompile of existing PFs with new or changed fields. Includes a pretty good copy routine, so data isn't lost and if it would, chgpf warns with an inquiry message.
|  
|  
| Files
|-
| DSPLIB
| Shows contents of a specific library.
| https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/cl/dsplib.htm
| Files
| Files
|}
|}


== See also ==
== See also ==

Revision as of 11:12, 21 January 2020

This article describes the basic commands for easy reference. Even more can be found at IBM's documentation.

Command Short description Link to detailed description Category
CRTSRCPF Creates a physical file for storing sources, f. e.
CRTSRCPF FILE(SOMELIBRARY/SOMEFILE) RCDLEN(112) TEXT('My file description')
Details Files
DLTF Deletes a file, f. e.
DLTF FILE(SOMELIBRARY/SOMEFILE)
Please note that this only deletes files like databases. Programs must be deleted using DLTPGM
Details Files
DLTPGM Deletes a program, f. e.
DLTPGM PGM(SOMELIBRARY/SOMEPGM)
Details Files
WRKMBRPDM Work with source files using the Programming Development Manager Details Development
STRSEU Starts the source code editor. Details Development
SEU Source code Edit Utility Details
…and more useful…
Usage
Development
STRREXPRC Start a REXX procedure (aka: script), f. e.:
STRREXPRC SRCMBR(SOMEMEMBER) SRCFILE(SOMEPHYSICALSOURCEFILE)
Details Development
CRTPGM Creates a program from source code Details Development
DSPUSRPRF Shows user profile, f. e.
DSPUSRPRF HKRETSCHME
Details Administration
DSPMSG Displays your messages, their origin might be another user or the compiler. Details Administration
STRSQL Start interactive SQL session
to view or change contents of your databases.
Details and [TBD about usage] Databases
STRDFU Start Data File Utility. Details Databases
DSPF Display the contents of a file, f. e.:
DSPF FILE(SOMELIB/SOMEDBFILE)
Details Databases
CRTDSPF Create Display Files Details Databases
RNMOBJ Rename Object Details Files
MOVOBJ Moves an object, like a physical file, to another library.
Example: MOVOBJ OBJ(HKRETSCHME/HELLO01) OBJTYPE(*FILE) TOLIB(HELLOWRLD) for physical files, or…
MOVOBJ OBJ(HKRETSCHME/HELLO01) OBJTYPE(*PGM) TOLIB(HELLOWRLD) …for programs.
Details Files
FNDSTRPDM Find a string in a file Details Files, Development
CRTCMOD Create a module[1] from C-Source.
f. e. CRTCMOD MODULE(CTI/NTWRKNG) SRCFILE(CTI/SOURCES) SRCMBR(NETWORKING) OPTION(*LOGMSG)
Details General C-Compiling About 2-Step-Compiling Development
CRTPGM Links the modules[2] into one program.
Details General C-Compiling About 2-Step-Compiling Development
CRTBNDC Creates a program from C-Source (CRTCMOD and CRT in one step). Details General C-Compiling Development
CHGCURLIB Changes current Library, f. e. CHGCURLIB SPLAMGMT Details Files
DSPFD Displays informations about physical files, f. e. DSPFD ARTIKELPF. Details Files
CHGPF Change Physical File. Allows to set file-specific flags without recompile, and easy recompile of existing PFs with new or changed fields. Includes a pretty good copy routine, so data isn't lost and if it would, chgpf warns with an inquiry message. Files
DSPLIB Shows contents of a specific library. https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/cl/dsplib.htm Files


See also

  1. In gcc-terms "object"
  2. In gcc-terms "objects"