Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Paul Gilmartin
On Tue, 29 Dec 2020 22:29:16 +0100, R.S. wrote: >Yes, exactly. >This is one of the reasons for custom-defined table. >Custom-defined is not "standard" >And yes, the goal is to change selected characters, and prepare the >opposite table. Of course translation can be reversible when the table >has

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Bernd Oppolzer
The program works correctly, 107 lines; when applied to source text and conversion is done from ASCII to EBCDIC (using the two code tables from the previous mail) and then the other way, the final result is identical with the original file :-) Kind regards Bernd Am 29.12.2020 um 23:05

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Seymour J Metz
For the ISO 8859 code pages a round trip is possible at the expense of mismatched semantics; I'm not sure that all of the PC code pages populate all 256 code points. I'd probably opt for UTF-8 to preserve semantic fidelity. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Bernd Oppolzer
It's ok for me, it's always fun to think about the problems other people have; sooner or later, they may be yours ... I started to write a Pascal program using my Stanford compiler; I fed it with two code tables in a format which I downloaded some time ago from an IBM site (IIRC). I tried to

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread R.S.
Yes, exactly. This is one of the reasons for custom-defined table. Custom-defined is not "standard" And yes, the goal is to change selected characters, and prepare the opposite table. Of course translation can be reversible when the table has unique values (this is first of the conditions) .

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Charles Mills
I suspect the OP meant "ASCII" in the common (but granted pedantically incorrect) sense of "one or more of the various code pages that use X'20' for space, X'41' for A, X'30' for zero, and so forth, or a variant thereof." Given that meaning, round trip is eminently possible. Charles

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Seymour J Metz
Round trip is not possible with ASCII. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Charles Mills [charl...@mcn.org] Sent: Tuesday, December 29, 2020 2:51 PM To:

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread R.S.
Yes, only text fields need to be translated just to be readable. And only few files would need to be translated back to original format. So, no CF/LF issues, no RECFM issues, no packed decimal issues, no binary issues, etc. Simple byte by byte conversion, which can be also reversed using

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Charles Mills
> If the input file contains not only text, but also binary and maybe decimal > packed fields, you need an external description of the record format, I think he has "round trip" translation in mind. Non-printable fields end up as hash in the ASCII file, but get restored properly on

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Bernd Oppolzer
If the input file contains not only text, but also binary and maybe decimal packed fields, you need an external description of the record format, which can be interpreted by the conversion program (if the program should be able to work with all file formats and not be specific for a certain

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Rupert Reynolds
Alternative: if you are comfortable with Rexx, Regina 3.9.3 has been very stable under Win64 here. From a typical text-bashing example I inherited :- /* Rexx */ call on notready name notready signal on novalue signal on error address SYSTEM "CLS" fexist = stream(infile, 'C', 'QUERY EXISTS') if

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread R.S.
W dniu 29.12.2020 o 18:54, Paul Gilmartin pisze: On Tue, 29 Dec 2020 18:12:06 +0100, R.S. wrote: 1. Yes, maybe I described it incorretly. Regarding your question - yes I need something like convert ifile ofile [-tablefile] Just byte to byte translation. No CR/LF issues, no record boundaries,

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread David Crayford
PS is incredibly powerful for a scripting language. It's capable of streaming .NET objects and not just text like bash. But I just find that I don't need it as I can write a Python script which I can also run to z/OS. In fact, there's me yapping on about bash when in fact I've been using zsh

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Frank Swarbrick
I don't make much use of PowerShell either, and love Windows Subsystem for Linux. But PS, verbose or not, does seem quite powerful. From: IBM Mainframe Discussion List on behalf of David Crayford Sent: Tuesday, December 29, 2020 11:15 AM To:

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread David Crayford
I'm using PowerShell 7.2. I don't use PowerShell all that often but when I do I'm blown away by it's power and turned off by it's verbosity. I tend to stick to bash CLI scripts and Python these days and my beloved Lua for embedded scripting. Ever since Windows got a Linux subsystem I spend all

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Mike Hochee
I like IBM's Unicode Services on z/OS for internationalization and conversion support, but of course z/OS only. A corresponding set of services and functions provided by IBM for LUW platforms as a free download would be most welcome! The following utility may have already been mentioned, but

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Frank Swarbrick
It doesn't look like Windows 10 included PowerShell supports EBCDIC, but the open source version, PowerShell 7.1 does. PS C:\Users\fswar> Format-Hex 1047.txt Label: C:\Users\fswar\1047.txt Offset Bytes Ascii 00 01 02 03 04

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Bernd Oppolzer
I don't want to advocate the use of Facebook, I understand completely your concerns about it. You get all the information on New Stanford Pascal from here: http://bernd-oppolzer.de/job9.htm and the source code etc. (and all you need for the MVS installation, BTW) from here:

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Robert Prins
On 2020-12-29 17:23, Bernd Oppolzer wrote: Hi Radoslaw, would you like to try my New Stanford Pascal compiler? It would do the things you want very easily, and you could write the programs to do these tasks in minutes. It runs on Windows, and if you want, on the Mainframe, too. I would be

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Paul Gilmartin
On Tue, 29 Dec 2020 18:12:06 +0100, R.S. wrote: >1. Yes, maybe I described it incorretly. >Regarding your question - yes I need something like >convert ifile ofile [-tablefile] >Just byte to byte translation. No CR/LF issues, no record boundaries, >just byte to byte. The file can be large (may

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread David Crayford
On 30/12/2020 1:12 am, R.S. wrote: This is even simpler tool, maybe it address rare need - just to truncate first nnn bytes from beginning of file Possible usage: truncfile -header -12384 ifile ofile truncates/deletes header, which is 12384 bytes long, the output is written to ofile. Ofile is

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Bernd Oppolzer
Hi Radoslaw, would you like to try my New Stanford Pascal compiler? It would do the things you want very easily, and you could write the programs to do these tasks in minutes. It runs on Windows, and if you want, on the Mainframe, too. I would be happy to help you with the first steps to get

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread R.S.
1. Yes, maybe I described it incorretly. Regarding your question - yes I need something like convert ifile ofile [-tablefile] Just byte to byte translation. No CR/LF issues, no record boundaries, just byte to byte. The file can be large (may not fit in memory). I agree, it is not black magic.

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Charles Mills
1. Conversion tool: your question is a little under-specified. You want a file to file conversion program? Read in a file in EBCDIC and write it out in ASCII? Do you have any ability at all to write a program for Windows? In C, Rexx, Visual Basic, etc.? The basics of translation are fairly

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Lennie Dymoke-Bradshaw
Maybe it does not have the capabilities you need but have a look at the V file viewer. https://www.fileviewer.com/ It is quite a favourite of mine. It handles XMI files beautifully too. Lennie -Original Message- From: IBM Mainframe Discussion List On Behalf Of R.S. Sent: 29 December

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Seymour J Metz
Make that iconv -f IBM-1047 -t ANSI_X3.4-1968 bar -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Seymour J Metz [sme...@gmu.edu] Sent: Tuesday, December 29, 2020 10:15

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Seymour J Metz
What's wrong with cp foo bar iconvd -f ANSI_X3.4-1968 -t IBM-1047 bar -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of R.S. [r.skoru...@bremultibank.com.pl]

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Joe Monk
https://www.vedit.com/ebcdic/simple-conversion.html Joe On Tue, Dec 29, 2020 at 8:48 AM R.S. wrote: > Well... > Ultraedit offer some conversions, but no custom-defined tables. I need > to use my own table - that's the problem. > For regular "quick and dirty" EBCDIC -> ASCII conversion I would

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread R.S.
Well... Ultraedit offer some conversions, but no custom-defined tables. I need to use my own table - that's the problem. For regular "quick and dirty" EBCDIC -> ASCII conversion I would use ...MS Word, which has ability to read EBCDIC text files. However it's also not the goal. And important:

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread R.S.
W dniu 29.12.2020 o 15:20, Lennie Dymoke-Bradshaw pisze: For the first requirement I was going to recommend SVC 103 but maybe that doesn't run under windows. Where does the second utility have to run? Windows also. Yes, on z/OS side there would be not a problem - everything is available in

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Steve Horein
I know several people that use UltraEdit: https://www.ultraedit.com/wiki/Converting_file_encoding I personally use notepad++, so cannot provide any first hand experience. On Tue, Dec 29, 2020 at 7:30 AM R.S. wrote: > 1. I'm looking for some simple tool for conversion EBCDIC to ASCII and > vice

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Massimo Biancucci
Depending on the Windows platform, you can consider to enable the Linux Bash and use the power of the bash to select the file portion and convert it. Good luck. Max Mail priva di virus.

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Lennie Dymoke-Bradshaw
For the first requirement I was going to recommend SVC 103 but maybe that doesn't run under windows. Where does the second utility have to run? Lennie Dymoke-Bradshaw Consultant working on contract for BMC mainframe Services by RSM Partners ‘Dance like no one is watching. Encrypt like everyone

Re: EBCDIC-ASCII converter and other tools

2020-12-29 Thread Steve Smith
HxD is a very nice "Hex Editor", with a lot of features, so it may be adaptable to your needs. In any case, it's very useful for poking around downloaded EBCDIC files. sas On Tue, Dec 29, 2020 at 8:30 AM R.S. wrote: > 1. I'm looking for some simple tool for conversion EBCDIC to ASCII and >

Re: TSO timeout S622

2020-12-29 Thread Peter Vander Woude
Dean, It's not the SMF JWT that's kicking the users off. That would be a S522 abend. Peter -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO

EBCDIC-ASCII converter and other tools

2020-12-29 Thread R.S.
1. I'm looking for some simple tool for conversion EBCDIC to ASCII and vice versa. Unfortunately it has to run under Windows. Requirements: Run under Windows, preferrably in batch mode (command line interface) Custom-defined tables of conversion 2. I'm looking for a tool similar to IDCAMS

Re: How to find out consumer of page datasets

2020-12-29 Thread Rob Scott
In SDSF, the "Aux" column on the AS panel shows auxiliary storage slot usage for each listed ASID. Rob Scott On 28 Dec 2020 12:12 pm, Ituriel do Neto <03427ec2837d-dmarc-requ...@listserv.ua.edu> wrote: EXTERNAL EMAIL Hi, In RMF you can use option 3 (Resource), than option 7 (Storf),