Page 1 of 1
Transferring APL2 workspaces
Posted: Thu Jan 28, 2010 1:09 pm
by PBourke
I'm a new user, and I need advice on migrating from IBM APL2 (PC version)
I've used )OUT in APL2 to produce the file AUG100.ATF which is on drive F:
Here's what I've got:
)LOAD APL2PCIN
.\APL2PCIN saved Wed Jan 27 12:31:13 2010
⍙⍙DESCRIBE
⍙⍙APL2IN 'F:\AUG100.ATF'
Cannot start nfiles AP
Do I have to "start up" the auxiliary processor" NFILES prior to the above, or take some other action?
Any help / advice would be greatly appreciated.
Thanks --- PBourke.
Re: Transferring APL2 workspaces
Posted: Thu Jan 28, 2010 4:13 pm
by DanB|Dyalog
Hi,
ATF files can be produced by APL2 on the mainframe, APL2 on the PC, APL+ and APLX.
They are all slightly different and must be dealt with separatly under Dyalog depending where they came from and which version of Dyalog you are using (importing them into).
Under V11 (^=delta underbar):
APL2 (PC), APL+, APLX: )load atfin and use the ^^atfin fn with a full pathname as argument.
Under V12:
APL2 (PC), APL+, APLX: )load atfin and use the ^^atfin fn with a full pathname as argument.
Under V12.1:
all versions: use the user command ]IN to bring in ATF files as in ]IN \full\path\filename
Note that this method does NOT modify the code and is likely to fail to produce fns where the header is illegal in Dyalog. Even fns that will be fixed may have code that cannot be run. You will be told if there were any problems fixing fns and which ones.
Manual tweaking is probably required before running the code.
/Dan
Re: Transferring APL2 workspaces
Posted: Fri Jan 29, 2010 9:43 am
by PBourke
Thanks DanB for your prompt and helpful response.
Your solution worked smoothly (of course with quotes around the full ATF file-name).
Best wishes --- PBourke.
Load fns from another workspacxe
Posted: Sat Mar 09, 2024 5:48 pm
by jmosk
Is there a way to load a function saved in another workspace, into the current workspace? The load command does not support a form like )load workspace-name fns-name.
Re: Transferring APL2 workspaces
Posted: Sun Mar 10, 2024 3:46 pm
by JoHo
)copy or quadCY would do the job.