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 [email protected] with the message: INFO IBM-MAIN

Reply via email to