Re: wc3270 or NOTEPAD++ help

2021-02-15 Thread Seymour J Metz
AFAIK, jar is zip with an extension that Java recognizes.

Subject to management edict, windoze can run scripts in, e.g., Java, Perl, Rexx 
(e.g., oorexx, Regina), Python, Ruby. If you have archiving software, e.g., 
Info-zip, then it's trivial to write a script to compress the relevant files 
into a single archive.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Bob 
Bridges [robhbrid...@gmail.com]
Sent: Monday, February 15, 2021 11:44 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: wc3270 or NOTEPAD++ help

Gil, I can't tell whether these are real questions or arguments.  As arguments 
I don't know enough to respond to most of them, but I'll treat them as actual 
requests for information and then respond "I don't know" in some cases:

G> How do you get your 50 files to the desktop side?

And right off the bat, I see I may have misled you.  I have these REXX modules 
stored on my PC in plain-text files, usually named ".mvsrex".  So 
from the point of view of me trying to copy them to a new client's mainframe, 
they started on the desktop side.

G> How many such sites lack a zip archiver on the desktop side?

And again, I see I was unclear.  (So many assumptions on my part.)  For the 
last 10 years or so my work has been almost entirely remote.  With many clients 
I have to spend the first week on-site just so they know I'm a real person, but 
when I'm talking about uploading my tools to the mainframe I mean directly from 
~my~ PC.

G> How many such sites lack jar on the z side?

No idea.  In the context of this thread I have no difficulty remembering that 
jar is some kind of compression scheme (isn't it?).  But I don't think I've 
ever used it.

G> How many such sites have a version of Rexx on the desktop side?

I pause in befuddlement.  Not many that I know of; I had to get my boss' 
permission to download a copy of Regina REXX in order to write him a 
handy-dandy tool once (it read great gulps of firewall logs to determine likely 
sources of virus infection).  But how is the question relevant to the issue of 
transferring mainframe-REXX modules from the desktop to the mainframe?

G> How do you deal with ASCII<->EBCDIC?  How do you deal with ?

IND$FILE handles those.  Ah, but in case I've found yet another way to be 
unclear, let me do better:  The multi-file-transfer scheme I was talking about 
is not a single file that contains all the files I want to transfer, 
concatenated together, with ways of handling filenames, EOF, EOL etc; it is a 
list of filenames, with special characters delimiting the filenames, the 
transfer methods for each and so on.  So maybe each line has a lower-case 'a' 
to start, then a path and filename, then two hex 00s, followed by 'B' or 'T' 
(for binary or ASCII); the next three characters can be anything, but after 
that...and so on.  If I use the emulator's method to create a three-file 
transfer definition, and then examine the file it creates, I can (sometimes) 
imitate that syntax and create a file of my own using (say) VBScript.

G> Does IBM consider IND$FILE supported?

I've always assumed so.  I used to be able to initiate file transfers by typing 
the IND$FILE command manually at the READY prompt or at option 6, ignoring the 
emulator entirely; doesn't that mean it's supported in TSO?

---
Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313

/* -from _A Pilgrim's Regress_ by C S Lewis:
John: Well, you would not assure me that it was anything real.
Reason: Nor that it was not.
John:  But I must think it is one or the other.
Reason:  By my father's soul, you must NOT -- until you have some evidence.  
Can you not remain in doubt?
John:  I don't know that I have ever tried.
Reason:  You must learn to, if you are to come far with me */

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Paul Gilmartin
Sent: Sunday, February 14, 2021 17:16

How do you get your 50 files to the desktop side?

How many such sites lack a zip archiver on the desktop side?

How many such sites lack jar on the z side?

How many such sites have a version of Rexx on the desktop side?

How do you deal with ASCII<->EBCDIC?

How do you deal with ?

Does IBM consider IND$FILE supported?

--- On Sun, 14 Feb 2021 16:26:28 -0500, Bob Bridges wrote:
>As a contractor I have to upload my REXX tools to a new client's
>mainframe every so often, and I find FTP is unavailable for the purpose
>maybe half the time.  They all use different 3270 emulators, but of
>course the emulators all use IND$FILE, and they all allow you to upload
>one file at a time or to create a multi-file set.  I've found that it's
>not impossible to use their emulator to create a test upload of
>multiple files (just two or three), and inspect the result to see how the 
>syntax works in that particular produc

Re: wc3270 or NOTEPAD++ help

2021-02-15 Thread Bob Bridges
Gil, I can't tell whether these are real questions or arguments.  As arguments 
I don't know enough to respond to most of them, but I'll treat them as actual 
requests for information and then respond "I don't know" in some cases:

G> How do you get your 50 files to the desktop side?

And right off the bat, I see I may have misled you.  I have these REXX modules 
stored on my PC in plain-text files, usually named ".mvsrex".  So 
from the point of view of me trying to copy them to a new client's mainframe, 
they started on the desktop side.

G> How many such sites lack a zip archiver on the desktop side?

And again, I see I was unclear.  (So many assumptions on my part.)  For the 
last 10 years or so my work has been almost entirely remote.  With many clients 
I have to spend the first week on-site just so they know I'm a real person, but 
when I'm talking about uploading my tools to the mainframe I mean directly from 
~my~ PC.

G> How many such sites lack jar on the z side?

No idea.  In the context of this thread I have no difficulty remembering that 
jar is some kind of compression scheme (isn't it?).  But I don't think I've 
ever used it.

G> How many such sites have a version of Rexx on the desktop side?

I pause in befuddlement.  Not many that I know of; I had to get my boss' 
permission to download a copy of Regina REXX in order to write him a 
handy-dandy tool once (it read great gulps of firewall logs to determine likely 
sources of virus infection).  But how is the question relevant to the issue of 
transferring mainframe-REXX modules from the desktop to the mainframe?

G> How do you deal with ASCII<->EBCDIC?  How do you deal with ?

IND$FILE handles those.  Ah, but in case I've found yet another way to be 
unclear, let me do better:  The multi-file-transfer scheme I was talking about 
is not a single file that contains all the files I want to transfer, 
concatenated together, with ways of handling filenames, EOF, EOL etc; it is a 
list of filenames, with special characters delimiting the filenames, the 
transfer methods for each and so on.  So maybe each line has a lower-case 'a' 
to start, then a path and filename, then two hex 00s, followed by 'B' or 'T' 
(for binary or ASCII); the next three characters can be anything, but after 
that...and so on.  If I use the emulator's method to create a three-file 
transfer definition, and then examine the file it creates, I can (sometimes) 
imitate that syntax and create a file of my own using (say) VBScript.

G> Does IBM consider IND$FILE supported?

I've always assumed so.  I used to be able to initiate file transfers by typing 
the IND$FILE command manually at the READY prompt or at option 6, ignoring the 
emulator entirely; doesn't that mean it's supported in TSO?

---
Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313

/* -from _A Pilgrim's Regress_ by C S Lewis:
John: Well, you would not assure me that it was anything real.
Reason: Nor that it was not.
John:  But I must think it is one or the other.
Reason:  By my father's soul, you must NOT -- until you have some evidence.  
Can you not remain in doubt?
John:  I don't know that I have ever tried.
Reason:  You must learn to, if you are to come far with me */

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Paul Gilmartin
Sent: Sunday, February 14, 2021 17:16

How do you get your 50 files to the desktop side?

How many such sites lack a zip archiver on the desktop side?

How many such sites lack jar on the z side?

How many such sites have a version of Rexx on the desktop side?

How do you deal with ASCII<->EBCDIC?

How do you deal with ?

Does IBM consider IND$FILE supported?

--- On Sun, 14 Feb 2021 16:26:28 -0500, Bob Bridges wrote:
>As a contractor I have to upload my REXX tools to a new client's 
>mainframe every so often, and I find FTP is unavailable for the purpose 
>maybe half the time.  They all use different 3270 emulators, but of 
>course the emulators all use IND$FILE, and they all allow you to upload 
>one file at a time or to create a multi-file set.  I've found that it's 
>not impossible to use their emulator to create a test upload of 
>multiple files (just two or three), and inspect the result to see how the 
>syntax works in that particular product.
>Then I write a VBS or VBA program to create such a file naming not one 
>or two REXX modules but 50.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-15 Thread Radoslaw Skorupka

I do the same. XMIT rules. :-)
It can be uploaded/downloaded using IND$FILE as well as ftp. It can be 
viewed and unpacked on PC side (I don't know a tool for update). Finally 
XMIT can contain any dataset you want. Especially XMIT can contain PDS 
FB 80, but the members can be also XMIT files containing VB 1300, 
RECFM=U or whatever.
Note: VSAM files have to be somehow packaged to non-VSAM. This is 
another step. It can be ADRDSSU which pack VSAM, AIX, PATH, whatever. 
Result is PS RECFM=U, which can be packed to XMIT.
Note: the "main" PDS can contain the content you want and some 
installation scripts/jobs.


Actually I use it for course materials - single XMIT file, TSO RECEIVE, 
then run a RECEIVE job from "main" PDS, then run few jobs and voila - 12 
student + instructor already have their datasets.


Side comment for zip/jar - that involves Unix System Services. Since we 
expect ftp can be unavailable, we also may expect OMVS segment problems 
in some shops. It happens. That's why it is better to use the most 
common and obviously available tools.


--
Radoslaw Skorupka
(looking for new job)
Lodz, Poland



W dniu 15.02.2021 o 01:09, Wayne Bickerdike pisze:

I use XMIT and download/upload using binary transfer. IND$FILE supports
binary. Then a TSO RECEIVE.

On Mon, Feb 15, 2021 at 9:16 AM Paul Gilmartin <
000433f07816-dmarc-requ...@listserv.ua.edu> wrote:


On Sun, 14 Feb 2021 16:26:28 -0500, Bob Bridges wrote:


As a contractor I have to upload my REXX tools to a new client's mainframe
every so often, and I find FTP is unavailable for the purpose maybe half

the

time.  They all use different 3270 emulators, but of course the emulators
all use IND$FILE, and they all allow you to upload one file at a time or

to

create a multi-file set.  I've found that it's not impossible to use their
emulator to create a test upload of multiple files (just two or three),

and

inspect the result to see how the syntax works in that particular product.
Then I write a VBS or VBA program to create such a file naming not one or
two REXX modules but 50.


How do you get your 50 files to the desktop side?

How many such sites lack a zip archiver on the desktop side?

How many such sites lack jar on the z side?

How many such sites have a version of Rexx on the desktop side?

How do you deal with ASCII<->EBCDIC?

How do you deal with ?

Does IBM consider IND$FILE supported?

-- gil



--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-15 Thread Dave Wade
>I am hoping some of you folk might have some ideas.
>
>I am trying to upload source files from a windows machine with only the above
>programs. I am not familiar with either.
>
>Is there a way to write a wc3270 script to batch the uploads rather than do
>one at a time?

Some versions have scripting. Try pressing "escape" then type "help scripting" 
but it depends on how its configured.

>Is there a way to cause NOTEPAD++ to combine all the files in the directory
>into a single file with some separator line between each file?

No but as others have said you can do this without notepad++ by using DOS 
commands and COPY to concatenate them with separators.
If you can't remember the syntax for DOS "IF" then you can use "dir /b 
>myfiles" to get a "bare" list of the files in a directory which you can 
convert to a batch file in notepad. You may also find  the "type", "copy 
+ options usefull.  The "dir /b" could also be usefull to 
construct a WC3270 script.

If you have ZIP on the Mainframe then windows has had ZIP built into file 
explorer since 2003. Simply navigate to the folder with your files, select them 
all, click on one then  cntrl+a should higlight them all, right click, send to 
compressed folder (zip) file. 

FTP passes passwords in clear text so has not been installed by default on 
Windows since I think Windows/7. Its still in the feature list along with 
command line telnet but you probably need to be an administrator to install it.

>Appreciate any help.
>

hope you find this use full

>Thank you.
>
>--


>Binyamin Dissen 
>http://www.dissensoftware.com

Dave Wade

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-14 Thread Wayne Bickerdike
I use XMIT and download/upload using binary transfer. IND$FILE supports
binary. Then a TSO RECEIVE.

On Mon, Feb 15, 2021 at 9:16 AM Paul Gilmartin <
000433f07816-dmarc-requ...@listserv.ua.edu> wrote:

> On Sun, 14 Feb 2021 16:26:28 -0500, Bob Bridges wrote:
>
> >As a contractor I have to upload my REXX tools to a new client's mainframe
> >every so often, and I find FTP is unavailable for the purpose maybe half
> the
> >time.  They all use different 3270 emulators, but of course the emulators
> >all use IND$FILE, and they all allow you to upload one file at a time or
> to
> >create a multi-file set.  I've found that it's not impossible to use their
> >emulator to create a test upload of multiple files (just two or three),
> and
> >inspect the result to see how the syntax works in that particular product.
> >Then I write a VBS or VBA program to create such a file naming not one or
> >two REXX modules but 50.
> >
> How do you get your 50 files to the desktop side?
>
> How many such sites lack a zip archiver on the desktop side?
>
> How many such sites lack jar on the z side?
>
> How many such sites have a version of Rexx on the desktop side?
>
> How do you deal with ASCII<->EBCDIC?
>
> How do you deal with ?
>
> Does IBM consider IND$FILE supported?
>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>


-- 
Wayne V. Bickerdike

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-14 Thread Paul Gilmartin
On Sun, 14 Feb 2021 16:26:28 -0500, Bob Bridges wrote:

>As a contractor I have to upload my REXX tools to a new client's mainframe
>every so often, and I find FTP is unavailable for the purpose maybe half the
>time.  They all use different 3270 emulators, but of course the emulators
>all use IND$FILE, and they all allow you to upload one file at a time or to
>create a multi-file set.  I've found that it's not impossible to use their
>emulator to create a test upload of multiple files (just two or three), and
>inspect the result to see how the syntax works in that particular product.
>Then I write a VBS or VBA program to create such a file naming not one or
>two REXX modules but 50.
> 
How do you get your 50 files to the desktop side?

How many such sites lack a zip archiver on the desktop side?

How many such sites lack jar on the z side?

How many such sites have a version of Rexx on the desktop side?

How do you deal with ASCII<->EBCDIC?

How do you deal with ?

Does IBM consider IND$FILE supported?

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-14 Thread Bob Bridges
As a contractor I have to upload my REXX tools to a new client's mainframe
every so often, and I find FTP is unavailable for the purpose maybe half the
time.  They all use different 3270 emulators, but of course the emulators
all use IND$FILE, and they all allow you to upload one file at a time or to
create a multi-file set.  I've found that it's not impossible to use their
emulator to create a test upload of multiple files (just two or three), and
inspect the result to see how the syntax works in that particular product.
Then I write a VBS or VBA program to create such a file naming not one or
two REXX modules but 50.

It's a pain, but there's a certain vindictive pleasure in getting around
such restrictions.  Sounds like you've figured out how to do it more easily,
though.

---
Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313

/* My life is in the hands of any fool who can make me lose my temper.
-driving motto */

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of
Binyamin Dissen
Sent: Saturday, February 13, 2021 14:50

The issue was legal, and FTP is blocked (don't ask me why .) - I could
connect, but any action would drop the connection (even in passive mode)

But the idea of Unix tools was good. They had bash, so I converted it into a
TAR and was able to user wc3270 file transfer. Now hoping that I can undo
(which requires an increase in USS space)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-14 Thread Seymour J Metz
What are your actual constraints? What is installed or permitted on your 
machine?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Binyamin Dissen [bdis...@dissensoftware.com]
Sent: Friday, February 12, 2021 9:46 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: wc3270 or NOTEPAD++ help

I am hoping some of you folk might have some ideas.

I am trying to upload source files from a windows machine with only the above
programs. I am not familiar with either.

Is there a way to write a wc3270 script to batch the uploads rather than do
one at a time?

Is there a way to cause NOTEPAD++ to combine all the files in the directory
into a single file with some separator line between each file?

Appreciate any help.

Thank you.

--
Binyamin Dissen 
http://secure-web.cisco.com/1VFVeYbW8y0PrnJ8wQ76ZRPH7Hs7Ytoc-nrQVr72_RWOdzZcUkS-MrBS4TlTZuzIndfiRna1z49eOkkES8gN2inYAR60WBYX2js6SO1hQI1gwr7jtT77IFBM-mF8c96L3XMloEU2A72LSayF6WWlABhlqKF4CqndTExk3IoBM2DBcxU0B7Bc_uQ0ZUxUjHV1T9VFoC10s8VGjcNnhXHqSf0hvrfsCgtpOsnsOtYlT6784x6yGLn4lN_Q5Na5_K0VJmvmEKW_sc_AJ5u72mD8BAqv4i_349S4NaUOxDk4kDsL9-Jd6LLBPzjOA841iVwM84kXESWWeadAJXFHVbowbhRSxhbQ_injIzO5QXM2UQvc3sZDrfwDHUTbhVIhCa1ES35UQ_RFUd4L8eQwglYUQ2osprSAF5rrU3UAj8udiS_-tcBs3JYJVZV-xN5sNtGNL/http%3A%2F%2Fwww.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-13 Thread Radoslaw Skorupka

W dniu 12.02.2021 o 21:19, Jeremy Nicoll pisze:

On Fri, 12 Feb 2021, at 20:09, Paul Gilmartin wrote:

On Fri, 12 Feb 2021 19:59:09 +, Michael Brennan wrote:


Just use native FTP from your PC to your mainframe.


He says he has *only* "wc3270 or NOTEPAD++".

On my system:

C:\>where ftp
C:\Windows\System32\ftp.exe

I'd be amazed if all the standard parts of Windows are not there.


That's why I wrote we don't know what exactly is allowed in this 
scenario and what is forbidden.
However this exercise seems irrational - I understand lack of budget and 
only free tools, but why only two tools? Maybe another constraint would 
be to disable right mouse button or "E" key?
BTW: It is real. I did really work in a shop where right mouse button 
was disabled "for security reasons". And the host was accessible through 
some cryptic gateway, so IP address set up in emulator was not real host 
address. FTP was up, but the host was inaccessible. However IND$FILE was 
working.

So, I can imagine that built in ftp client is disabled. Why not?
BTW: Some companies deny to use any freeware. Everything you want to use 
have to be supported, etc. I'm curious how they explained use of 
internet browsers.



--
Radoslaw Skorupka
(looking for new job)
Lodz, Poland

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-13 Thread Charles Mills
I have installed a free, open source, native Windows tool called 7-Zip. I
see an option to create or add to a TAR archive.

Also appears to support the writing of 7z, bzip2, gzip, wim, xz and zip
formats. Decompresses a whole bunch of others.

https://www.7-zip.org/ 

Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Jeremy Nicoll
Sent: Saturday, February 13, 2021 2:37 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: wc3270 or NOTEPAD++ help

On Sat, 13 Feb 2021, at 21:24, Paul Gilmartin wrote:

> My Windows knowledge is rudimentary.  What tool creates a TAR archive?

I'd guess the standard linux command, if the machine had this installed:

https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux

(or a cygwin, or msys2 or mingw environment).

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-13 Thread Jeremy Nicoll
On Sat, 13 Feb 2021, at 21:24, Paul Gilmartin wrote:

> My Windows knowledge is rudimentary.  What tool creates a TAR archive?

I'd guess the standard linux command, if the machine had this installed:

https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux

(or a cygwin, or msys2 or mingw environment).

-- 
Jeremy Nicoll - my opinions are my own.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-13 Thread Paul Gilmartin
On Sat, 13 Feb 2021 21:49:33 +0200, Binyamin Dissen wrote:
>
>The issue was legal, and FTP is blocked (don't ask me why .) - I could
>connect, but any action would drop the connection (even in passive mode)
>
>But the idea of Unix tools was good. They had bash, so I converted it into a
>TAR and was able to user wc3270 file transfer. Now hoping that I can undo
>(which requires an increase in USS space)
>
Good.
My Windows knowledge is rudimentary.  What tool creates a TAR archive?
I don't see it as a WinZip  option.

See: 
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.bpxa500/r4paxsh.htm

You should be able to verify it with:
pax -v  to 

exec sed -e 's/^M$//' "$@"

Transfer to PDS (if necessary) with OGETX.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-13 Thread Binyamin Dissen
Thanks for the responses.

The issue was legal, and FTP is blocked (don't ask me why .) - I could
connect, but any action would drop the connection (even in passive mode)

But the idea of Unix tools was good. They had bash, so I converted it into a
TAR and was able to user wc3270 file transfer. Now hoping that I can undo
(which requires an increase in USS space)

On Fri, 12 Feb 2021 13:49:56 -0600 Paul Gilmartin
<000433f07816-dmarc-requ...@listserv.ua.edu> wrote:

:>On Fri, 12 Feb 2021 14:22:56 -0500, Gord Tomlin wrote:

:>>I don't know whether the OP's lack of choice on software is due to finances 
or administrative restrictions. I'm going to go ahead on the assumption that 
it's a lack of dollars.
 
:>If the OP can use a (free) zip utility, the archives can be extracted on z/OS
:>with jar.  Conversion to EBCDIC can be done individually with iconv or en 
masse
:>with pax. s can be stripped with sed or tr.

:>On Administrative restrictions: "Mit der Dummheit kämpfen Götter selbst 
vergebens."

:>>wc3270 is a variant of x3270, built to run on Windows. x3270 contains 
IND$FILE support.
:>>http://x3270.bgp.nu/

:>>Passport provided a FTP client for Windows. I believe this has been taken 
over by Rocket and renamed to something else, and I don't know whether they 
retained the FTP client.
:>>https://filezilla-project.org/

:>>Windows itself contains a line-mode FTP client. If you want GUI, FileZilla 
is good and free.

:>>7-Zip is a good free alternative to WinZip.
:>>https://www.7-zip.org/

:>Beware! 7-Zip (by default?) creates a default archive format incomprehensible
:>to customary zip utilities.

:>On Fri, 12 Feb 2021 12:33:28 -0700, Sri h Kolusu wrote:

:>>Why not use the good old DOS commands in batch to combine all the text
:>>files into a single with header of the file name?

:>He said he hasn't "good old DOS commands"; only "wc3270 or NOTEPAD++".

--
Binyamin Dissen 
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Robert Prins

On 2021-02-12 14:46, Binyamin Dissen wrote:

I am hoping some of you folk might have some ideas.

I am trying to upload source files from a windows machine with only the above
programs. I am not familiar with either.

Is there a way to write a wc3270 script to batch the uploads rather than do
one at a time?

Is there a way to cause NOTEPAD++ to combine all the files in the directory
into a single file with some separator line between each file


This is what I use to merge (currently) 2,038 files into one, for upload to 
z/OS, where UPDTE from CBT Tape 093(?) puts them into a VB PDS:


=== CUT ===
del zall.txt 1> nul 2>nul

:: wrapped line follows

for %%a in (*.h-h) do echo ./ ADD LIST=ALL,NAME=%%a 1>> zall.txt && copy /b 
zall.txt+%%a zall.txt


sed -i -r "s£(\./ ADD LIST=ALL,NAME=)(.*)(\.h-h)£\1\U\2\E£" zall.txt
sed -i "s£[ ]*$££" zall.txt

del sed* 1> nul 2> nul
=== CUT ===

"sed" is GNUMin's SED, and there's another program on the same tape 093 that can 
set ISPF statistics.


It would also be possible to use Regina REXX (and I'm actually doing this for 
some other files, where I need timestamps).


Robert
--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather - https://prino.neocities.org/indez.html
Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Jeremy Nicoll
On Fri, 12 Feb 2021, at 20:09, Paul Gilmartin wrote:
> On Fri, 12 Feb 2021 19:59:09 +, Michael Brennan wrote:
> 
> >Just use native FTP from your PC to your mainframe.
> >
> He says he has *only* "wc3270 or NOTEPAD++".

On my system:

C:\>where ftp
C:\Windows\System32\ftp.exe

I'd be amazed if all the standard parts of Windows are not there.
It's a command-line tool:

C:\>ftp /?

Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-A] [-x:sendbuffer] 
[-r:recvbuffer] [-b:asyncbuffers] [-w:windowsize] [host]

  -v  Suppresses display of remote server responses.
  -n  Suppresses auto-login upon initial connection.
  -i  Turns off interactive prompting during multiple file
  transfers.
  -d  Enables debugging.
  -g  Disables filename globbing (see GLOB command).
  -s:filename Specifies a text file containing FTP commands; the
  commands will automatically run after FTP starts.
  -a  Use any local interface when binding data connection.
  -A  login as anonymous.
  -x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
  -r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
  -b:async count  Overrides the default async count of 3
  -w:windowsize   Overrides the default transfer buffer size of 65535.
  hostSpecifies the host name or IP address of the remote
  host to connect to.

Notes:
  - mget and mput commands take y/n/q for yes/no/quit.
  - Use Control-C to abort commands.

C:\>

-- 
Jeremy Nicoll - my opinions are my own.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Gibney, Dave
A common paranoia is to not enable the mainframe side ftp server. And, the 
native Windows ftp client does not do encryption.
On the issue of multiple files to transfer,  Sri has provided a good way that 
should work on any level of Windows to consolidate the file(s) into one stream. 
If we assume Windows 10, then there are several other 'nix variations for 
consolidation. 
And, eventually having an IEBUPDTE processable file on the mainframe seems a 
good idea.

> -Original Message-
> From: IBM Mainframe Discussion List  On
> Behalf Of Paul Gilmartin
> Sent: Friday, February 12, 2021 12:10 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: wc3270 or NOTEPAD++ help
> 
> On Fri, 12 Feb 2021 19:59:09 +, Michael Brennan wrote:
> 
> >Just use native FTP from your PC to your mainframe.
> >
> He says he has *only* "wc3270 or NOTEPAD++".
> 
> >
> >From:  Binyamin Dissen 
> >Sent: Friday, February 12, 2021 8:46 AM
> >...
> >I am trying to upload source files from a windows machine with only the
> above
> >programs. ...
> 
> -- gil
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Paul Gilmartin
On Fri, 12 Feb 2021 19:59:09 +, Michael Brennan wrote:

>Just use native FTP from your PC to your mainframe.
>
He says he has *only* "wc3270 or NOTEPAD++".

>
>From:  Binyamin Dissen 
>Sent: Friday, February 12, 2021 8:46 AM
>...
>I am trying to upload source files from a windows machine with only the above
>programs. ...

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Michael Brennan
Just use native FTP from your PC to your mainframe.  Put the files all in the 
same directory on your PC.
1. Open a Command Prompt on your PC.

2.  CD 'prefix' - where your prefix is high level Qualifier under which the 
transferred files are located.

3.  ftp 'Hostname'  - where 'Hostname' is DNS or IP address of your z/OS system.

4. Enter this command:   binonly if these are binary files.  If they are 
text files then skip this step.

5. Enter this command to suppress the prompts asking you to confirm that the 
high-level qualifier
for each installation file to be uploaded matches prefix:
prompt off

6: Enter this command to specify the default dataset characteristics:
quote site recfm=fb lrecl=80 blksize=3120 cyl pri=1 sec=1  - adjust these 
parms for your data.

7: Issue command:  mput * - This will send every file in the directory of 
'prefix' to your host.You can also do partial wildcards like if all the 
files begin with jjs.  then mput jjs.*




From: IBM Mainframe Discussion List  on behalf of 
Binyamin Dissen 
Sent: Friday, February 12, 2021 8:46 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: wc3270 or NOTEPAD++ help

[CAUTION: This Email is from outside the Organization. Unless you trust the 
sender, Don’t click links or open attachments as it may be a Phishing email, 
which can steal your Information and compromise your Computer.]

I am hoping some of you folk might have some ideas.

I am trying to upload source files from a windows machine with only the above
programs. I am not familiar with either.

Is there a way to write a wc3270 script to batch the uploads rather than do
one at a time?

Is there a way to cause NOTEPAD++ to combine all the files in the directory
into a single file with some separator line between each file?

Appreciate any help.

Thank you.

--
Binyamin Dissen 
https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.dissensoftware.com%2Fdata=04%7C01%7Cmichael.brennan%40HCL.COM%7Cade11bbe96ec40fb14a508d8cf650896%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637487380148167832%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=uKLFO%2B0QFDxMkoHwSSia4ERvbcw2yp6fHaU2DzT0Ea8%3Dreserved=0

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. E-mail transmission is not guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or may contain viruses in transmission. 
The e mail and its contents (with or without referred errors) shall therefore 
not attach any liability on the originator or HCL or its affiliates. Views or 
opinions, if any, presented in this email are solely those of the author and 
may not necessarily reflect the views or opinions of HCL or its affiliates. Any 
form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of this message without the prior written 
consent of authorized representative of HCL is strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any email and/or attachments, please check them for 
viruses and other defects.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Paul Gilmartin
On Fri, 12 Feb 2021 14:22:56 -0500, Gord Tomlin wrote:
>
>I don't know whether the OP's lack of choice on software is due to finances or 
>administrative restrictions. I'm going to go ahead on the assumption that it's 
>a lack of dollars.
> 
If the OP can use a (free) zip utility, the archives can be extracted on z/OS
with jar.  Conversion to EBCDIC can be done individually with iconv or en masse
with pax. s can be stripped with sed or tr.

On Administrative restrictions: "Mit der Dummheit kämpfen Götter selbst 
vergebens."

>wc3270 is a variant of x3270, built to run on Windows. x3270 contains IND$FILE 
>support.
>http://x3270.bgp.nu/
>
>Passport provided a FTP client for Windows. I believe this has been taken over 
>by Rocket and renamed to something else, and I don't know whether they 
>retained the FTP client.
>https://filezilla-project.org/
>
>Windows itself contains a line-mode FTP client. If you want GUI, FileZilla is 
>good and free.
>
>7-Zip is a good free alternative to WinZip.
>https://www.7-zip.org/
>
Beware! 7-Zip (by default?) creates a default archive format incomprehensible
to customary zip utilities.


On Fri, 12 Feb 2021 12:33:28 -0700, Sri h Kolusu wrote:
>
>Why not use the good old DOS commands in batch to combine all the text
>files into a single with header of the file name?
> 
He said he hasn't "good old DOS commands"; only "wc3270 or NOTEPAD++".

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Sri h Kolusu
> Is there a way to cause NOTEPAD++ to combine all the files in the
directory
> into a single file with some separator line between each file?

Binyamin Dissen,

Why not use the good old DOS commands in batch to combine all the text
files into a single with header of the file name?


1. Save the following as combtxt.bat in the same directory as your text
files

del combined.txt

for %%I in (*.txt) do (
echo %%~fI >> combined.tmp
type "%%I" >> combined.tmp
echo. >> combined.tmp
)

ren combined.tmp combined.txt

2. Open DOS prompt and CD to the directory of your text file and issue the
command comtxt.bat and all your .txt files will be combined into a single
file with the header record of the file path.

3. Now FTP/send  the combined.txt file to your mainframe


Thanks,
Kolusu

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Gord Tomlin

On 2021-02-12 13:27 PM, Paul Gilmartin wrote:

He says (astonishingly) he has*only*  "wc3270 or NOTEPAD++".
Wc3270 probably includes IND$FILE but not FTP.  I know only one
(now obsolescent) 3270 emulator which includes FTP (server!),
and it never ran on Windows.

If he had WinZip (which he says he hasn't) and WinZip could create
a .pax archive (I believe it can extract them) ...


I don't know whether the OP's lack of choice on software is due to finances or 
administrative restrictions. I'm going to go ahead on the assumption that it's 
a lack of dollars.

wc3270 is a variant of x3270, built to run on Windows. x3270 contains IND$FILE 
support.
http://x3270.bgp.nu/

Passport provided a FTP client for Windows. I believe this has been taken over 
by Rocket and renamed to something else, and I don't know whether they retained 
the FTP client.
https://filezilla-project.org/

Windows itself contains a line-mode FTP client. If you want GUI, FileZilla is 
good and free.

7-Zip is a good free alternative to WinZip.
https://www.7-zip.org/

--

Regards, Gord Tomlin
Action Software International
(a division of Mazda Computer Corporation)
Tel: (905) 470-7113, Fax: (905) 470-6507
Support: https://actionsoftware.com/support/

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Paul Gilmartin
On Fri, 12 Feb 2021 18:38:11 +0100, Radoslaw Skorupka wrote:

>W dniu 12.02.2021 o 15:46, Binyamin Dissen pisze:
>> I am hoping some of you folk might have some ideas.
>>
>> I am trying to upload source files from a windows machine with only the above
>> programs. I am not familiar with either.
>
>In this case it would be nice to have a tool which create XMI file on PC
>side. Unfortunately all xmit managers I know do not update XMI files.
>
>...
>2. Use ftp instead of IND$FILE.
>3. Use another terminal emulator. Even trial version, or just buy one of
>the cheaper.
>
>In fact we don't know all the constraints you have.
>
He says (astonishingly) he has *only* "wc3270 or NOTEPAD++".
Wc3270 probably includes IND$FILE but not FTP.  I know only one
(now obsolescent) 3270 emulator which includes FTP (server!),
and it never ran on Windows.

If he had WinZip (which he says he hasn't) and WinZip could create
a .pax archive (I believe it can extract them) ...

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Radoslaw Skorupka

W dniu 12.02.2021 o 15:46, Binyamin Dissen pisze:

I am hoping some of you folk might have some ideas.

I am trying to upload source files from a windows machine with only the above
programs. I am not familiar with either.

Is there a way to write a wc3270 script to batch the uploads rather than do
one at a time?

Is there a way to cause NOTEPAD++ to combine all the files in the directory
into a single file with some separator line between each file?

Appreciate any help.


In this case it would be nice to have a tool which create XMI file on PC 
side. Unfortunately all xmit managers I know do not update XMI files.


Few ideas:
1. Concatenate all the files in single file. You can use any tags or 
labels to mark boundaries. It can be IEBUPDTE compatible. Of course it 
is good for text files.

2. Use ftp instead of IND$FILE.
3. Use another terminal emulator. Even trial version, or just buy one of 
the cheaper.
4. Use another mainframe - yes, maybe it is possible to upload all the 
files to another system, then copy all of them to a PDS, then TSO 
TRANSMIT to XMI file and download it to PC.


In fact we don't know all the constraints you have.

--
Radoslaw Skorupka
(looking for new job)
Lodz, Poland

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Paul Gilmartin
On Fri, 12 Feb 2021 14:50:50 +, Colin Paice wrote:

>If you can create one large file on windows,  and put
>
>./ADD   LIST=ALL,NAME=MYNAME...
> 
>between each file
> 
It depends:
o On the file attrributes.
o And that the files contain no lines that look like IEBUPDTE commands.

>you can use iebupdte  for example
>https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.idau100/u1438.htm
>it will create a member for each section headed by ./ ADD


>On Fri, 12 Feb 2021 at 14:46, Binyamin Dissen wrote:
>>
>> I am trying to upload source files from a windows machine with only the
>> above
>> programs. I am not familiar with either.
>>
The "only" astonishes me.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: wc3270 or NOTEPAD++ help

2021-02-12 Thread Colin Paice
If you can create one large file on windows,  and put

./ADD   LIST=ALL,NAME=MYNAME...

between each file

you can use iebupdte  for example
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.idau100/u1438.htm
it will create a member for each section headed by ./ ADD

Colin

On Fri, 12 Feb 2021 at 14:46, Binyamin Dissen 
wrote:

> I am hoping some of you folk might have some ideas.
>
> I am trying to upload source files from a windows machine with only the
> above
> programs. I am not familiar with either.
>
> Is there a way to write a wc3270 script to batch the uploads rather than do
> one at a time?
>
> Is there a way to cause NOTEPAD++ to combine all the files in the directory
> into a single file with some separator line between each file?
>
> Appreciate any help.
>
> Thank you.
>
> --
> Binyamin Dissen 
> http://www.dissensoftware.com
>
> Director, Dissen Software, Bar & Grill - Israel
>
>
> Should you use the mailblocks package and expect a response from me,
> you should preauthorize the dissensoftware.com domain.
>
> I very rarely bother responding to challenge/response systems,
> especially those from irresponsible companies.
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


wc3270 or NOTEPAD++ help

2021-02-12 Thread Binyamin Dissen
I am hoping some of you folk might have some ideas.

I am trying to upload source files from a windows machine with only the above
programs. I am not familiar with either.

Is there a way to write a wc3270 script to batch the uploads rather than do
one at a time?

Is there a way to cause NOTEPAD++ to combine all the files in the directory
into a single file with some separator line between each file?

Appreciate any help.

Thank you.

--
Binyamin Dissen 
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN