Basic Commands: Difference between revisions

From Try-AS/400
Jump to navigation Jump to search
(Created page with "This article describes the basic commands for easy reference. Even more can be found at [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71 IBM's documentation]. {|...")
 
 
(46 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{| class="wikitable sortable"
{| class="wikitable sortable"
! Command
! Command
! Description
! Short description
! Details
! Link to detailed description
! Category
|-
| CRTSRCPF
| Creates a physical file for storing sources, f.&thinsp;e.<br/><code>CRTSRCPF FILE(SOMELIBRARY/SOMEFILE) RCDLEN(112) TEXT('My file description')</code >
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/ddp/rbae5crtsrcp.htm Details]
| Files
|-
|-
| DLTF
| DLTF
| Deletes a file.
| Deletes a file, f.&thinsp;e.<br/><code>DLTF FILE(SOMELIBRARY/SOMEFILE)</code><br/>Please note that this only deletes files like databases. Programs must be deleted using <code>DLTPGM</code>
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/cl/dltf.htm Details]
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/cl/dltf.htm Details]
| Files
|-
| DLTPGM
| Deletes a program, f.&thinsp;e.<br/><code>DLTPGM PGM(SOMELIBRARY/SOMEPGM)</code>
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/cl/dltpgm.htm Details]
| Files
|-
| WRKMBRPDM
| Work with source files using the Programming Development Manager
| [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/cl/wrkmbrpdm.htm Details]
| Development
|-
| STRSEU
| Starts the source code editor.
| [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/cl/strseu.htm Details]
| Development
|-
| SEU
| Source code Edit Utility
| [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasc/hseu.htm Details]<br/>&#x2026;and more useful&#x2026;<br/>[https://as400i.com/2013/03/13/using-the-source-entry-utility-seu-as400/ Usage]
| Development
|-
| STRREXPRC
| Start a REXX procedure (aka: script), f.&thinsp;e.:<br/><code>STRREXPRC SRCMBR(SOMEMEMBER) SRCFILE(SOMEPHYSICALSOURCEFILE)</code>
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/cl/strrexprc.htm Details]
| Development
|-
| CRTPGM
| Creates a program from source code
| [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/cl/crtpgm.htm Details]
| Development
|-
| DSPUSRPRF
| Shows user profile, f.&thinsp;e.<br/><code>DSPUSRPRF HKRETSCHME</code>
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/cl/dspusrprf.htm Details]
| Administration
|-
| DSPMSG
| Displays your messages, their origin might be another user or the compiler.
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/cl/dspmsg.htm Details]
| Administration
|-
| STRSQL
| Start interactive SQL session<br/>to view or change contents of your databases.
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/cl/strsql.htm Details] and [TBD about usage]
| Databases
|-
| STRDFU
| Start Data File Utility.
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/cl/strdfu.htm Details]
| Databases
|-
| DSPF
| Display the contents of a file, f.&thinsp;e.:<br/><code>DSPF FILE(SOMELIB/SOMEDBFILE)</code>
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/cl/dspf.htm Details]
| Databases
|-
| CRTDSPF
| Create Display Files
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/cl/crtdspf.htm Details]
| Databases
|-
| RNMOBJ
| Rename Object
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_71/cl/rnmobj.htm Details]
| Files
|-
| MOVOBJ
| Moves an object, like a physical file, to another library.<br/>Example: <code>MOVOBJ OBJ(HKRETSCHME/HELLO01) OBJTYPE(*FILE) TOLIB(HELLOWRLD)</code> for physical files, or&#x2026;<br/><code>MOVOBJ OBJ(HKRETSCHME/HELLO01) OBJTYPE(*PGM) TOLIB(HELLOWRLD)</code> &#x2026;for programs.
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/cl/movobj.htm Details]
| Files
|-
| FNDSTRPDM
| Find a string in a file
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/cl/fndstrpdm.htm Details]
| Files, Development
|-
| CRTCMOD
| Create a module<ref>In gcc-terms "object"</ref> from C-Source. <br/> f.&thinsp;e. <code>CRTCMOD MODULE(CTI/NTWRKNG) SRCFILE(CTI/SOURCES) SRCMBR(NETWORKING) OPTION(*LOGMSG)</code>
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/cl/crtcmod.htm Details] [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/rzarf/clcommands.htm General C-Compiling] [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/rzasc/bndmodpgm.htm About 2-Step-Compiling]
| Development
|-
| CRTPGM
| Links the modules<ref>In gcc-terms "objects"</ref> into one program.<br/>
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/rzasc/crtpgm9.htm Details] [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/rzarf/clcommands.htm General C-Compiling] [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/rzasc/bndmodpgm.htm About 2-Step-Compiling]
| Development
|-
| CRTBNDC
| Creates a program from C-Source (CRTCMOD and CRT in one step).
| [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/cl/crtbndc.htm Details] [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/rzarf/clcommands.htm General C-Compiling]
| Development
|-
| CHGCURLIB
| Changes current Library, f.&thinsp;e. <code>CHGCURLIB SPLAMGMT</code>
| [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/cl/chgcurlib.htm Details]
| Files
|-
| DSPFD
| Displays informations about physical files, f.&thinsp;e. <code>DSPFD ARTIKELPF</code>.
| [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/cl/dspfd.htm 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.
| [https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/cl/chgpf.htm Details]
| Files
|-
| DSPLIB
| Shows contents of a specific library.
| [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/cl/dsplib.htm Details]
| Files
|}
|}


== See also ==
* [[UNIX-User's Cheater Table]]
== Footnotes ==
<references />


[[Category:Basic Knowledge]]
[[Category:Basic Knowledge]]

Latest revision as of 19:10, 7 March 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. Details Files
DSPLIB Shows contents of a specific library. Details Files

See also

Footnotes

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