home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: InfoMgt / InfoMgt.zip / excal.zip / UPDATEOV.CMD < prev   
OS/2 REXX Batch file  |  1994-11-10  |  1KB  |  24 lines

  1. /* Example of the REXX interface to ExCal using PMDPROFS              */
  2. /*                                                                    */
  3. /* This simple REXX command file invokes the "export" function        */
  4. /* of ExCal, runs PMDPROFS, then imports the result.                  */
  5. /*                                                                    */
  6. /* Note: The SysSetObjectData only accepts object IDs for folder      */
  7. /*       objects; paths are not accepted.  As a result, the           */
  8. /*       Calendar must be created with an object ID.  I believe       */
  9. /*       this is a REXX bug, since WinSetObjectData/WinQueryObject    */
  10. /*       together work with either folder or data file objects.       */
  11. /*       The initial ExCal was created with object ID                 */
  12. /*       "<EXCAL_CALENDAR>".                                          */
  13.  
  14. Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  15. Call SysLoadFuncs
  16.  
  17. /* NOTE! Update the path below for your PMDIARY.$D$ file              */
  18. /*       for example, "EXPORTTOPMDIARY=C:\OS2\APPS\PMDIARY.$D$"       */
  19. /*       and "IMPORTFROMPMDIARY=C:\OS2\APPS\PMDIARY.$D$"              */
  20.  
  21. rc = SysSetObjectData("<EXCAL_CALENDAR>", "EXPORTTOPMDIARY=PMDIARY.$D$")
  22. 'pmdprofs'
  23. rc = SysSetObjectData("<EXCAL_CALENDAR>", "IMPORTFROMPMDIARY=PMDIARY.$D$")
  24.