FAQ > PERCobol General Notes > Migrating from AcuCobol to PERCobol
Some general advice when migrating applications from AcuCobol to LegacyJ PERCobol.
When compiling code originally written for AcuCobol, be sure to create
any project using the Acu compatibility template; it sets up data and
files to be the same wherever possible with Acu. The files support
sequential, relative, and indexed Vision 4 without compression. Place
copy files in the copylib folder. If using an Acu configuration file,
place it in resources folder. PERCobol does use several of the Acu
configuration parameters, so if using configuration settings be sure
they make sense in the new environment.
Keyboard Settings from AcuCobol applications:
Compiling AcuCobol applications and configuing the function and special keys there are differences between the execution of my old AcuCobol program and my new PERCobol program. Can the keyboard be changed to use the AcuCobol standard?\
Yes, there is a runtime setting (right click on the project->properties->Cobol runtime settings). The LegacyJ key code style should be closest to AcuCobol's, so make sure it is selected.
AcuConnect
AcuConnect is supported as a client. For client or server, PERCobol includes special support for standard Java RMI (Remote Method Invocation), documented in the Programmer's Guide.
Acu CALL Functions
The special call functions supported by PERCobol are documented in the appendix. C$RUN is support. WIN$PRINT returns that functions are not supported. There is a large set of P$ printer commands that offer far more printer functionality. As the request list above is probably a subset, I include the full list of supported functions below.
| General Commands CBL_AND CBL_COPY_FILE CBL_CREATE_DIR CBL_DELETE_DIR CBL_DELETE_FILE CBL_EQ CBL_IMP CBL_JOIN_FILENAME CBL_NOT CBL_OR CBL_RENAME_FILE CBL_TOLOWER CBL_TOUPPER CBL_XOR CBL_YIELD_RUN_UNIT Data Conversion ASCII2HEX ASCII2OCTAL HEX2ASCII OCTAL2ASCII General Commands C$ASYNCPOLL C$ASYNCRUN C$CALLERR C$CHAIN C$COPY C$DELETE C$CENTURY C$DELAY C$PLAYSOUND C$SHOW C$SHOWARGS C$TITLE C$BARCODE (requires third-party plugin) C$GETFREEMEMORY ; general commands C$GETTOTALMEMORY C$FILEINFO C$FULLNAME C$JUSTIFY C$MAKEDIR C$NARG C$OPENSAVEBOX C$RUN C$SLEEP C$SYSTEM C$TOLOWER C$TOUPPER Memory M$ALLOC M$FREE M$GET M$PUT Windows Functions (Generalized beyond Windows) W$BITMAP W$FONT W$MENU W$MESSAGEBOX W$PALETTE WIN$PLAYSOUND WIN$VERSION Libary to System Properties LIB$GET_SYMBOL LIB$SET_SYMBOL File System RENAME SYSTEM |
Printer Functions P$CLEARDIALOG P$DISPLAYDIALOG P$ENABLEDIALOG P$DISABLEDIALOG P$GETDIALOG P$SETDIALOG P$DRAWBITMAP P$DRAWBOX P$DRAWLINE P$GETPOSITION P$LINETO P$MOVETO P$SETBOXSHADE P$SETPEN P$SETPOSITION P$EJECT P$CLOSE P$OPEN P$CLEARFONT P$GETTEXTEXTENT P$GETTEXTMETRICS P$GETTEXTPOSITION P$SETDEFAULTALIGNMENT P$SETFONT P$SETLINEEXTENDMODE P$SETTABSTOPS P$SETTEXTCOLOR P$SETPAINTMODE P$SETTEXTPOSITION P$TEXTOUT P$COMPONENTOUT P$SETDEFAULTMODE P$SETDEFAULTUNITS P$SETLEFTMARGIN P$SETTOPMARGIN P$SETBOTTOMMARGIN P$ENABLEESCAPESEQUENCES P$DISABLEESCAPESEQUENCES P$GETDEVICECAPABILITIES P$GETHANDLE P$SETHANDLE P$CONNECTORTHICKNESS P$CONNECTOR P$COMMAND |
Last updated on December 28, 2009 by Daniel Myers
