Ask Your Question
3

How can data in EBCDIC and ASCII formats from the IBM 1600/6250 Mainframe be imported into R?

asked 2022-03-03 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-08-24 16:00:00 +0000

pufferfish gravatar image

To import data in EBCDIC and ASCII formats from the IBM 1600/6250 Mainframe into R, you can follow these steps:

  1. Convert EBCDIC to ASCII: It is important to first convert the data from EBCDIC format to ASCII format using any relevant software or programming languages. This can be done using utilities such as iconv or pdftotext, or programming languages such as Python or Java.

  2. Export data: Once the data is converted to ASCII format, it can be exported from the Mainframe into a file format that is compatible with R such as CSV, Excel, or tab-delimited.

  3. Import data into R: After exporting the data, you can easily import it into R using the read.csv(), read_excel(), or read.delim() functions for CSV, Excel, and tab-delimited formats respectively.

Alternatively, you can use the REXX programming language to directly read and process data from the Mainframe.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-03 11:00:00 +0000

Seen: 9 times

Last updated: Aug 24 '22