Porting Central
Skip to main content

Porting Central

What EDTMBR is

   The Edit Member (EDTMBR)  The Edit Member (EDTMBR) command allows the user to edit a physical file database member using either the EZ or Emacs editor.  EDTMBR starts ASCII based editors, so it will extract the physical file member and convert it to ASCII before starting the editor.  If the temporary file is changed during the edit session, it will be converted and stored back upon exiting the edit session.  EDTMBR starts the EZ editor by default.  You can also use this command to start the Emacs editor by changing the Preferred Editor parameter on the STRPTL command. QIBM_PTL_EDITOR environment variable.

Quick Reference:

EDTMBR
FILE(Source Data Base File Name)
    Specifies the name and library of the database file to be edited.

MBR(Database Member)

     Specifies the name of the database file member to be edited.

TOTYPE(extension type)

     Specifies extension type that the temporary file is to be created as.  .C is the default extention.

Usage Notes

When the Edit Member command is run it uses the CPYTOSTMF to convert the EBCIDIC file to an ASCII file and store it in a temporary directory called /home/youruserid/notifs.  This directory is created by the STRPTL command.  While the edit session is running you job holds a lock on the physical file member so no other uses can change the file until you have exited your edit session.  Note that a phyical file is created with a record lenght (see the DSPFFD command to verify the record length for you file).  While editing the physical file you can type in a record that is greater than the record length of the file you are using, since CPYFROMSTMF truncates, if you are not careful you can get data truncation!  To prevent truncation, he default TOTYPE  for the EDTMBR command is set to C and by default C is set to issue a warning if you exit an edit session with records longer than 80 characters.  You can also use the menu option Source Text - Find Next Too-Long Line to fix lines that are too long.  If you would like to define other extensions with too long line warnings or change the max length allowed for a .C file, you can change the addfiletype entry in your /home/youruserid/.ezinit file.  The following is the default entry:
addfiletype .C  ctext    "template=c;max-length=80"

Add another addfiletype line to define other extensions, or change max-length=80 to another warning length.

Prerequisites

This command requires that PASE option  33 of the Operating System is installed, that you have run the Start
   iSeries Tools (STRPTL) command to initialize your environment and
   that you are running an X Server on your client device.

Related Topics

  ez