User Tools

Site Tools


pub:miscadmincmd

This is an old revision of the document!


Miscellaneous Administrative Commands

The following lists commands that aid in administrating iMail, yet are not used extensively enough to warrant a menu item.

  • CLRMAILLOG - This aptly named command does just what is implied. When running this command the email log is cleared of previously logged mail. No command parameters are required.
  • PRGMAILLOG - This command will actually purge the email log file of all the entries greater than a specific date, or older then a specific number of days and for either all users or specific users.

                          Purge iMail Log (PRGMAILLOG)                          
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 User Profile . . . . . . . . . .   *ALL          Character value, *ALL         
 Purge older than MM/DD/YYYY  . .   000000        Date                          
 Purge older than Days  . . . . .   0             Number                        
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                         Bottom 
 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display    
 F24=More keys                                                                  

Adminstrative Tasks

  • Clearing iMail Attachments: If old attachments are accumulating in the iMail directory and you wish to automatically purge them, add the following scheduled job:


ADDJOBSCDE JOB(CLRIMAIL) 
CMD(STRQSH CMD('find /iMail/* -atime +1 -print  | xargs rm')) 
FRQ(*WEEKLY) 
SCDDATE(*NONE) 
SCDDAY(*SUN) 
SCDTIME('04:00:00')                                                                     

This command will clear all files in the /iMail directory that were last accessed 1 day or more ago. Please note that the /iMail directory specified above should match the iMail directory you are using, configured here . You will also need to specify a jobqueue for this scheduled job that works for your setup.

Upgrading from Standalone iMail 3.27 to Integrated iDocs 5.0

To upgrade to iMail 5.0, which is in library FMG and is integrated with the iDocs Suite, perform these steps:

  • Perform the upgrade or installation of iDocs 5.0 per the instructions, including PTF application.
  • Save a copy of the license keys for iDocs 5.

CPYF FROMFILE(FMG/EMCFGDB) TOFILE(QGPL/EMCFGDB) FROMMBR(*FIRST) TOMBR(*FIRST) MBROPT(*REPLACE) CRTFILE(*YES)

  • Put FMG at the top of the library list: ADDLIBLE FMG
  • Run the command CPYMAILDTA SRCLIB(IMAIL30) TGTLIB(FMG) where IMAIL30 is the standalone iMail library name.

This command migrates all the iMail settings, but also migrates the license keys.

  • Copy back license keys:

CPYF FROMFILE(QGPL/EMCFGDB) TOFILE(FMG/EMCFGDB) FROMMBR(*FIRST) TOMBR(*FIRST) MBROPT(*UPDADD) CRTFILE(*NO) FROMRCD(*START) TORCD(*END) INCCHAR(ECDTAID 1 '@KEY')

Use the command REGISTER to delete any duplicates or unneeded keys.

  • Go to menu IMAIL and take option 1. Configure iMail. Verify the configuration settings.
  • From the prior screen, press F13=Configure Environment. Verify:

 

  • Target IFS Directory: imail ( verify that this directory exists and check the authority )
  • Default Library. . .: FMG ( verify that the library is the name of the iDocs 5.0 library )
  • Default Code Page. .: 819
  • DIF file Code Page .: 819

  • Use F10 to save all changes.
  • Check the contents of the iMail library dataarea:

DSPDTAARA DTAARA(DSIMAILLIB)

If it does not read FMG then change it:

CHGDTAARA DTAARA(FMG/DSIMAILLIB *ALL) VALUE('FMG')

pub/miscadmincmd.1438041189.txt.gz · Last modified: 2022/06/25 17:02 (external edit)