# Import from Reflection

Source: https://wndsoftware.com/docs/import-reflection

Drop Reflection session files on the WND Terminal window. It reads the settings it recognizes by name and explains anything it can’t use.

WND Terminal imports Reflection Desktop 3270 session documents (`.rd3x`), Reflection for IBM settings saved as XML, and Reflection for IBM text settings files (`.rsf`) from version 11 and earlier. VT session documents (`.rdox`) import as UNIX and Linux connections, and VBA and Reflection Basic macros run as they are. Encrypted documents and binary `.rsf` files from version 12 and later are recognized and explained.

On a small screen, swipe the table to read all columns.


| Reflection file | Result |
| --- | --- |
| Reflection Desktop 3270 session document (`.rd3x`) | Imported. Host address, port, terminal name, code page and other settings found by name. |
| Reflection for IBM settings saved as XML | Imported the same way. |
| `.rsf` text settings, Reflection for IBM 11 and earlier | Imported. |
| `.rsf` from version 12 and later | Saved in binary. The app explains how to save the settings as XML from Reflection. |
| Encrypted session documents | Recognized and explained. |
| VT sessions (`.rdox`) | Imported as UNIX / Linux (SSH) or VT (Telnet) connections. See [UNIX and Linux sessions](https://wndsoftware.com/docs/vt-sessions). |
| Reflection’s demo host | Recognized and explained. |


## How to import

Drop the files anywhere on the WND Terminal window. You can also use Import…  on the connect page, or press Ctrl+K and choose Import . WND Terminal shows what it found before it saves anything.


## Reflection Desktop session documents (.rd3x)

An `.rd3x` file is a zip archive. Inside, `documents/settings/settings.xml` holds `HostAddress`, `Port` and the rest of the session. Rocket doesn’t publish the schema, so WND Terminal finds settings by name and lists anything it can’t use.

- `rcDeviceName` becomes the connection’s terminal name (LU). The session then uses TN3270E and asks the mainframe for that name.
- `HostCodePage` gives the session the right character set, so national characters show correctly.


## Reflection for IBM XML settings

Settings that Reflection for IBM saved as XML are read the same way, by setting name.


## Reflection for IBM .rsf files

Version 11 and earlier save `.rsf` files as text, with lines such as `.SetString rcHostName, "mvs"`. WND Terminal reads these directly.

Version 12 and later save `.rsf` in binary, which WND Terminal can’t read. When you drop one, the app explains how to save the settings as XML from Reflection. Then import the XML.


## Keyboard maps

Keyboard maps imported from Reflection open in the same keymap editor as any other map (Ctrl+K > Keyboard maps). An imported map takes precedence over WND Terminal’s own copy and paste keys, so people keep the keys they know. See [Keyboard maps](https://wndsoftware.com/docs/keyboard-maps).


## Macros

Reflection Basic (`.rbs`) macros, the older Reflection API in VBA, and Reflection Desktop VBA macros run in WND Terminal as they are. In the Macros panel, choose Import a macro  and pick the macro file, an exported `.bas` module, or the `.rd3x`, `.rd5x` or `.rdox` document that holds the VBA project. Each macro in the project becomes one of your macros. Any line WND Terminal can’t run, such as Reflection’s `ThisFrame` or DDE, is listed with its line number.

WND Terminal runs them in its own interpreter, not Microsoft VBA. On Windows, macros that also drive Excel through `CreateObject` keep working. See [Run your existing macros](https://wndsoftware.com/docs/legacy-macros). Some jobs people wrote VBA for are built in too. [Fill from Excel](https://wndsoftware.com/fill-from-excel) types a spreadsheet into an entry screen, and [Capture all pages](https://wndsoftware.com/capture-all-pages) turns a multi-page list into one table.

Programs that drive Reflection from outside through `ReflectionIBM.Session` or EHLLAPI keep working too. See [EHLLAPI, COM and .NET](https://wndsoftware.com/docs/ehllapi-com).


## Extra! sessions

WND Terminal reads Extra! `.edp` session files directly, with their backup hosts. Only an `.edp` file that isn’t text needs Reflection Desktop to save it as `.rd3x` or `.rd5x` first. See [Import from other emulators](https://wndsoftware.com/docs/import-other-emulators).


## Policy still applies

IT’s policy holds for imported sessions in the same way as for any other. With `RequireEncryption` set, every connection is encrypted whatever the session document says. With `AllowOtherHosts` = false, people can only use IT’s connections.


## Importing a whole share

The Migration readiness report reads every Reflection file on a share, along with PCOMM, BlueZone, ACS and other emulators’ files. It sorts each into “imports cleanly”, “imports with small notes” or “needs a person”. Encrypted documents and binary `.rsf` files land in “needs a person” with the exact file list. VT sessions import, and each VBA and Reflection Basic macro is marked as running in WND Terminal or listed with the lines that need a change. It changes nothing in the folder.


## Questions


### Can WND Terminal run Reflection VBA macros?

Yes. Reflection Basic and Reflection Desktop VBA macros run as they are, imported from the macro file, a .bas module or the session document. WND Terminal runs them in its own interpreter and lists any line it can’t run with its line number.


### Why won't my .rsf file import?

Reflection for IBM 12 and later saves .rsf files in binary. Save the settings as XML from Reflection and import the XML. WND Terminal explains how when you drop the file.


### Can WND Terminal open encrypted Reflection session documents?

No. It recognizes them and explains why it can't read them. The readiness report lists them as needing a person.

Technical reviewer: [Albert Joseph](https://wndsoftware.com/authors/albert-joseph), WND Software.
