Re: BSF? [was: RE: Java (Re: Some questions on SYSCALL)]

2022-07-07 Thread Paul Gilmartin
On Fri, 8 Jul 2022 02:38:38 +0100, CM Poncelet wrote: >Without meaning to bump into what might be off topic, SYSCALL is >actually a CLIST instruction - not a REXX one (unless it's a case of >"nous avons changé tout ça") >  When Charles started this thread on June 28, he made it clear that he was

Re: BSF? [was: RE: Java (Re: Some questions on SYSCALL)]

2022-07-07 Thread Paul Gilmartin
(This thread should move to comp.lang.advocacy.) On Thu, 7 Jul 2022 16:40:08 +, Farley, Peter x23353 wrote: >OK, I'll bite: What is BSF please? I do know of PCRE (though I really do not >like the Perl RE syntax, I prefer Posix/gawk RE syntax) but BSF is a new >acronym to me. > I try to ke

Re: How do I issue a command with a blank in it?

2022-07-07 Thread Paul Gilmartin
On Thu, 7 Jul 2022 08:17:11 -0700, Charles Mills wrote: > >Yes, the blank is apparently a factor (as you note). But I think it has to be >more than just a simple naïve scan (TRT or otherwise; TRT is just a software >loop written in micro- or millicode) for a blank. > I'll assume (and OCO won't d

Re: How do I issue a command with a blank in it?

2022-07-07 Thread Paul Gilmartin
On Thu, 7 Jul 2022 06:58:47 -0700, Charles Mills wrote: > >Maybe too many commas? >... Too many blanks. The OP reports that the error does not occur if he changes one blank to an underscore. I deem this the malign progeny of TRT. The designer knew (correctly) that every command ends with a b

Re: sys1.parmlib compare

2022-07-07 Thread Paul Gilmartin
On Wed, 6 Jul 2022 15:11:11 -0500, Willy Jensen wrote: >I have an ISPF based dialog to compare 2 libraries, and copy between them. See >MLCMP at http://harders-jensen.com > Elaborate indeed! >Start by taking a look at the doc - click on the 'text' text in the righthand >column. Note that the PD

Re: sys1.parmlib compare

2022-07-06 Thread Paul Gilmartin
On Wed, 6 Jul 2022 14:36:37 -0500, BM wrote: > >I would like to explore the rexx, Appreciate it if you have it handy and >share, yes Kolusu suggested one helped. > Sounds like a self-training exercise. I've used ISRSUPC only to compare single members/files, not entire libraries. You might use

Re: sys1.parmlib compare

2022-07-06 Thread Paul Gilmartin
On Wed, 6 Jul 2022 15:17:58 +, Burrell, Todd wrote: >You will probably have to generate member lists for both PDS's and then you >can use REXX to generate the compare JCL member by member. There may be a >quicker way with something like PDSTOOLS, but this is how I would attempt it. > Not

Re: How do I issue a command with a blank in it?

2022-07-06 Thread Paul Gilmartin
On Wed, 6 Jul 2022 11:47:17 +0100, Colin Paice wrote: >I've issued a command from SDSF with a blank it ,but it is not working >properly. ... > >The doc says > Which doc? SDSF? System Commands? Other (specify)? >*parameters: Program parameters passed to the started program. This might >be a li

Re: sys1.parmlib compare

2022-07-05 Thread Paul Gilmartin
On Tue, 5 Jul 2022 19:48:12 -0500, BM wrote: >I am trying to compare members of sys1.parmlib from two different Operating >systems (using SuperCE), Any other simple ways to do this, Like mass compare >of members? > See Opt

Re: Using SORT to generate sequential Dates

2022-06-30 Thread Paul Gilmartin
On Thu, 30 Jun 2022 22:22:08 +, Sri h Kolusu wrote: >>>I tried this in Rexx. I found it astonishingly hard to get "the end of the >>>current month". > >DFSORT has plethora of date related functions that can get the last day of >month, Quarter and year quite easily in either Gregorian forma

Re: Using SORT to generate sequential Dates

2022-06-30 Thread Paul Gilmartin
On Thu, 30 Jun 2022 17:29:31 -0400, Billy Ashton wrote: >... >Having more dates than this is fine, and is no problem to go back even >another month and ahead even another month. > So would current date - 61 days through current date + 30 days be acceptable in all cases? -- gil -

Re: Using SORT to generate sequential Dates

2022-06-30 Thread Paul Gilmartin
On Thu, 30 Jun 2022 20:23:16 +, Billy Ashton wrote: >... >I would like to use SORT to generate a file ... > >I need this for about 3 months worth of dates. The dates should start >either on the 15th of the month, 2 months ago, or 45 days ago (whichever >is easier) and go up through the e

Re: Java?

2022-06-30 Thread Paul Gilmartin
On Thu, 30 Jun 2022 13:49:09 -0400, Tony Harminc wrote: >On Thu, 30 Jun 2022 at 09:45, Paul Gilmartin wrote: > >> Why is "requires dubbing" a thing? > >Because it can fail? > Lots of things can fail. >But perhaps more serious for Java on z/OS is that as far

Re: FTP error receiving holddata

2022-06-30 Thread Paul Gilmartin
On Thu, 30 Jun 2022 16:39:27 +, James, Joseph L. (CTR) wrote: >Which server is now available to pull HOLDDATA. If I'm not mistaken a few >changes were made that cause this long time process to fail in this shop. >What should replace "service.bouler.ibm.com" what should now be use

Re: REXX outside TSO

2022-06-30 Thread Paul Gilmartin
On Wed, 29 Jun 2022 19:44:15 -0400, Bob Bridges wrote: >I've heard the word "awk", but never been exposed to it. I had the >impression, though, that I've heard of it in the context of Unix; am I >mistaken? > Somewhere in this tangle of threads someone mentioned BASIC for brevity. I convert

Re: Java?

2022-06-30 Thread Paul Gilmartin
On Thu, 30 Jun 2022 09:55:08 -0500, Kirk Wolf wrote: >"dubbing" basically means that a TCB gets assigned a z/OS UNIX pid.If you >run z/OS Java under a batch address space (like with the JZOS batch launcher), >then dubbing will occur since the JVM is written in C and uses z/OS Unix >services

Re: Java?

2022-06-30 Thread Paul Gilmartin
On Thu, 30 Jun 2022 10:47:59 +, Seymour J Metz wrote: >I believe that Java in z/OS requires dubbing It's also available in Linux. Off >the mainframe, it's also available for many PC and server systems. > Why is "requires dubbing" a thing? -- gil

Re: Some questions on SYSCALL

2022-06-29 Thread Paul Gilmartin
On Wed, 29 Jun 2022 20:22:10 -0700, Charles Mills wrote: >... >"99 Bottles of Beer" is more concise in C++ than in Python, and MUCH more >concise in BASIC. Does that make BASIC a better language? >https://en.wikipedia.org/wiki/99_Bottles_of_Beer > The BASIC is 219 characters. I converted i

Re: REXX outside TSO

2022-06-29 Thread Paul Gilmartin
On Wed, 29 Jun 2022 19:44:15 -0400, Bob Bridges wrote: >I've heard the word "awk", but never been exposed to it. I had the >impression, though, that I've heard of it in the context of Unix; am I >mistaken? > UNIX, yes. Which means it's readily available on z/OS, Mac OS, and Linux. Similar to R

Re: Some questions on SYSCALL

2022-06-29 Thread Paul Gilmartin
On Wed, 29 Jun 2022 22:22:39 +0200, Bernd Oppolzer wrote: >> >This is an old OS/2 REXX program (from the 1990s, IIRC), >used to traverse a directory tree recursively and issue a command in >every subdirectory found: > > z/OS Rexx ought to be able to do likewise with SYSCALL readdir:

Re: REXX outside TSO

2022-06-29 Thread Paul Gilmartin
On Wed, 29 Jun 2022 12:00:12 -0400, Bob Bridges wrote: > >... writing a REXX that read the raw firewall extract and created a CSV in > about 20 seconds. REXX makes ~very~ short work of parsing. At the time I > don’t think I knew VBScript, but it surely would have been harder. > For that so

Re: Some questions on SYSCALL

2022-06-29 Thread Paul Gilmartin
On Jun 29, 2022, at 07:02:39, David Crayford wrote: > ... > That doesn't eliminate confusion at all. If you have a large loop and you > don't understand your code then your code is crap. Any decent code editor > will match blocks on key-press. ISPF doesn't meet that criteria! > The singula

Re: ... SYSCALL ... And Thanks!

2022-06-29 Thread Paul Gilmartin
On Jun 29, 2022, at 06:48:14, Bill Schoen wrote > ... > re: write buffer is a variable name > This was done for a variety of reasons, but primarily, rexx has a limit to > number of parameters that can be passed to an address environment. > I think TSO rexx limits it to 20. If it took a strin

Re: Some questions on SYSCALL

2022-06-29 Thread Paul Gilmartin
ww.ibm.com/docs/en/zos/2.5.0?topic=commands-open-write-close-file > -Original Message- > From: Paul Gilmartin > Sent: Tuesday, June 28, 2022 3:01 PM > > Both by value. >string = "Hello world"ESC_N &g

Re: Some questions on SYSCALL

2022-06-29 Thread Paul Gilmartin
On Jun 29, 2022, at 06:37:39, Lionel B. Dyck wrote: > > Some align the end with the do, others align the end with the code in the do > structure. The key is a consistent style for readability. > > The REXXFORM results of my example are: > > /* rexx */ >

Re: Some questions on SYSCALL

2022-06-28 Thread Paul Gilmartin
On Tue, 28 Jun 2022 16:01:42 -0700, Charles Mills wrote: >SYSCALLS is staying "ON". It is just ADDRESS SYSCALL that is going away. > address SYSCALL command /* goes away. */ address SYSCALL /* (no command) stays on. */ Similar to behavior of "address ISREDIT". On Tue, 28 Jun 2022 19:03:09

Re: Some questions on SYSCALL

2022-06-28 Thread Paul Gilmartin
On Tue, 28 Jun 2022 15:55:20 -0700, Ed Jaffe wrote: >On 6/28/2022 3:50 PM, Charles Mills wrote: >> And another question: what makes ADDRESS SYSCALL "go away"? > >Years ago on MVS-OE we were advised by Bill Schoen not to attempt >SYSCALLS("OFF"). > >Once you turn it on, leave it on... > Good memo

Re: Some questions on SYSCALL

2022-06-28 Thread Paul Gilmartin
On Tue, 28 Jun 2022 17:05:40 -0500, Dale R. Smith wrote: >On Tue, 28 Jun 2022 14:00:32 -0700, Charles Mills wrote: > >Call Function arg1, arg2...Sets REXX special variable "result" to whatever >value Function returns > (and DROPs "result" if Function returns no value.) >I sometimes use the

Re: Some questions on SYSCALL

2022-06-28 Thread Paul Gilmartin
On Tue, 28 Jun 2022 14:42:45 -0700, Charles Mills wrote: >I am still not quite understanding the usage of Rexx variables with SYSCALL. > >If myFileName = "/u/myfile" then do I want to code > >"SYSCALL open myFileName" or "SYSCALL open" myFileName ? > address SYSCALL "open" myFileName /* Rexx ev

Re: Some questions on SYSCALL

2022-06-28 Thread Paul Gilmartin
On Tue, 28 Jun 2022 13:49:53 -0700, Charles Mills wrote: >So are you saying I should be coding > >Foo = SYSCALLS("ON") > Either that or call SYSCALLS "ON" -- gil -- For IBM-MAIN subscribe / signoff / archive access instructio

Re: Some questions on SYSCALL

2022-06-28 Thread Paul Gilmartin
On Tue, 28 Jun 2022 13:41:40 -0700, Charles Mills wrote: >> It issued the value returned by the SYSCALLS (probably '0') to the default >> command >> environment (perhaps 'MVS') which failed the command: "-3". > >Well, yeah. Not my first Rexx program. The question is "is this to be expected >in a

Re: CSSMTP

2022-06-28 Thread Paul Gilmartin
On Tue, 28 Jun 2022 19:57:03 +, rpinion865 wrote: >First, I know this is not a z/OS question. But, I'm drawing a blank on how to >signup and post on the IBM-TCP-L forum. > -- gil ---

Re: Some questions on SYSCALL

2022-06-28 Thread Paul Gilmartin
On Tue, 28 Jun 2022 12:44:51 -0700, Charles Mills wrote: >I was not super clear, was I? Per >https://www.ibm.com/docs/en/zos/2.1.0?topic=environment-establishing-syscall I >coded > >SYSCALLS("ON") > >And got a -3. Subsequent SYSCALL "whatever" commands failed. > It issued the value returned by

Re: Copy file, omitting first X characters

2022-06-27 Thread Paul Gilmartin
On Mon, 27 Jun 2022 19:10:43 +, Frank Swarbrick wrote: >I know this is very basic, but it's been a while... I want to copy a file >where each record in the new file omits the first X number of characters from >the source file, but includes everything else. Both files are variable length >

Re: File Transfer Alternatives - Different Platforms

2022-06-27 Thread Paul Gilmartin
On Mon, 27 Jun 2022 17:22:41 +, Steve Finch wrote: >SMB, NFS, DB2 > Depending on availability of the vehicle on "Different Platforms". How does one transfer a file with DB2? As a BLOB? >-Original Message- >From: Mark Jacobs >Sent: Monday, June 27, 2022 10:18 AM > >This might be a s

Re: File Transfer Alternatives - Different Platforms

2022-06-27 Thread Paul Gilmartin
On Mon, 27 Jun 2022 14:17:43 +, Mark Jacobs wrote: >... With data locking so when server 'X' is writing the data, no other > server can read it, and the reverse of course too. No data updates when data > is being read. > With a Solaris FTP server I have relied on UNIX behavior: ...

Re: File Transfer Alternatives - Different Platforms

2022-06-27 Thread Paul Gilmartin
On Mon, 27 Jun 2022 14:17:43 +, Mark Jacobs wrote: >This might be a silly question, but are there any solutions out there for data >access by different platforms other than sending data around the internal >network? I'm thinking of have a huge storage device where servers, Linux, >Windows,

Re: USS compare (and SMP/E?)

2022-06-25 Thread Paul Gilmartin
On Sat, 25 Jun 2022 07:34:23 -0500, Paul Gilmartin wrote: >On Fri, 24 Jun 2022 18:01:37 -0500, Bhum Muth wrote: > >>mounted zFS files(2 etc files) them zOS, /etc is a directory and I want to >>compare the contents of two directories. >> >Since you mention /etc,

Re: USS compare (and SMP/E?)

2022-06-25 Thread Paul Gilmartin
On Fri, 24 Jun 2022 18:01:37 -0500, Bhum Muth wrote: >mounted zFS files(2 etc files) them zOS, /etc is a directory and I want to >compare the contents of two directories. > Since you mention /etc, re you dealing with IBM's service convention:

Re: USS compare

2022-06-24 Thread Paul Gilmartin
On Fri, 24 Jun 2022 23:42:44 +, Sri h Kolusu wrote: > >Use dircmp > >https://www.ibm.com/dscs/en/zos/2.4.0?topic=descriptions-dircmp-compare-directories > I nadn't known about that: Guideline: The dircmp utility is fully supported for compatibility with older UNIX systems. However, use

Re: USS compare

2022-06-24 Thread Paul Gilmartin
On Sat, 25 Jun 2022 08:10:23 +0800, David Crayford wrote: >On 25/06/2022 7:43 am, Bhum Muth wrote: >> I want to compare the names and content of the files > >diff -r dir1 dir2 > diff-results.txt > That's at least an instance. If the OP wants general proficiency, he should consult:

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 18:04:02 +, Seymour J Metz wrote: >Why did you put the reason code 0594003D in the command string instead of >SPWNPGM1? > As I Read The Fine Manual: , I see: To determine the m

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 11:36:55 -0400, Steve Smith wrote: >I just ran a test. PARM='PGM /bin/bpxmtext 0594003D' works. stdout has: >BPXFVLKP 04/27/18 > >JRDirNotFound: A directory in the pathname was not found > I'm slightly surprisd. The OP's command was: //JSTEP EXEC PGM=BPXBATCH,PARM='PG

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 14:49:41 +, Seymour J Metz wrote: >I believe that BPXBATCH does not support quoting the path; if true that would >explain the not found return code. What happens with PARM='PGM >/u///SPWNPGM1'? > BPXBATCH does't care about special characters. It operate

Re: BPXBATCH and PGM invocation

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 09:45:40 -0400, Kenneth J. Kripke wrote: >Thank you to all that had responded. I was able to accomplish what I wanted >to get done using BPXWUNIX within a REXX. > Certainly a more powerful alternative. You can issue several commands and process status and output from each.

Re: SFTP JOB Data parameter

2022-06-23 Thread Paul Gilmartin
On Thu, 23 Jun 2022 09:58:30 +0300, saurabh khandelwal wrote: > >1) Mainframe is getting file from windows. So, few of the files in >windows having today’s date and few of them having yesterday’s date( today-1) . > So there are multiple files ("few"). Do you know a priori which have today's

Re: BPXBATCH and PGM invocation (and DSFS?)

2022-06-22 Thread Paul Gilmartin
On Wed, 22 Jun 2022 16:20:31 -0400, Tony Harminc wrote: >> > >> >Why not copy the program into a PDSE, and then use // EXEC >> >PGM=SPWNPGM1 with the appropriate STEPLIB? >> > >> Everything looks like a nail. > >Not sure if you're suggesting that *I* am seeing the OP's problem as a >nail (and so a

Re: BPXBATCH and PGM invocation

2022-06-22 Thread Paul Gilmartin
On Wed, 22 Jun 2022 16:08:31 -0400, Tony Harminc wrote: > >Why not copy the program into a PDSE, and then use // EXEC >PGM=SPWNPGM1 with the appropriate STEPLIB? > Everything looks like a nail. -- gil -- For IBM-MAIN subscribe /

Re: BPXBATCH and PGM invocation

2022-06-22 Thread Paul Gilmartin
On Wed, 22 Jun 2022 14:51:40 -0400, Kenneth J. Kripke wrote: >I am trying to execute a unix stored program using BPXBATCH from MVS but it >fails continuously with > >BPXM047I BPXBATCH FAILED BECAUSE SPAWN (BPXISFN) OF >'u///SPWNPGM1' FAILED > >WITH RETURN CODE 0081 REASON CODE

Re: SFTP JOB Data parameter

2022-06-22 Thread Paul Gilmartin
On Wed, 22 Jun 2022 12:45:56 -0500, Michael Oujesky wrote: >Might you have the job log from one that had yesterday's data? > And that requires a couple more steps: One to access that log. A second to convert it to SFTP and OGET commands This might bee: o "sed" which I know fairly well. o ISPF

Re: Some UNIX file usage questions

2022-06-22 Thread Paul Gilmartin
On Sat, 18 Jun 2022 09:51:45 -0700, Charles Mills wrote: >Hope some of you can help out a dinosaur. > Just use DFSORT. Experts recommend it. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send emai

Re: SFTP JOB Data parameter

2022-06-22 Thread Paul Gilmartin
On Wed, 22 Jun 2022 16:06:06 +, Sri h Kolusu wrote: >>> Mr. Natural says, Use the right tool for the job. > >Gil, > >I agree with the statement, however in this case rexx isn't the right tool. >Here are a few reasons I can think off > >1. Most shops discourage the use of REXX in production

Re: SFTP JOB Data parameter

2022-06-22 Thread Paul Gilmartin
On Wed, 22 Jun 2022 16:00:38 +0300, saurabh khandelwal wrote: > >Thanks you so much. Finally below code worked. But in this, we are getting >current (today’s date) but in some of the files, we are getting yesterday’s >date (today’s -1) . > >How can we make this process work for yesterday’s date. >

Re: SFTP JOB Data parameter

2022-06-22 Thread Paul Gilmartin
On Wed, 22 Jun 2022 14:53:22 +, Sri h Kolusu wrote: >>> Thanks you so much. Finally below code worked. But in this, we are getting >>> current (today’s date) but in some of the files, we are getting yesterday’s >>> date (today’s -1) . > >Saurabh, > >The date and time are extracted from the s

Re: SFTP JOB Data parameter

2022-06-22 Thread Paul Gilmartin
On Wed, 22 Jun 2022 16:00:38 +0300, saurabh khandelwal wrote: > >... in some of the files, we are getting yesterday’s date (today’s -1) . > Is that because the Windows files are generated before midnight but the TSO job runs after midnight? That's a process problem; it can't be fixed in code.

Re: Some UNIX file usage questions

2022-06-21 Thread Paul Gilmartin
On Tue, 21 Jun 2022 19:55:01 +0200, Peter Sylvester wrote: >On 21/06/2022 17:47, Mike Schwab wrote: >> 24 byte blocks get 82 blocks per track. (96 blocks * 31 days) / 82 >> blocks = 37 tracks per month. Inefficient but a very small >> utilization. Copy to historical dataset to reblock. > >Indee

Irony (was: Some UNIX file usage questions)

2022-06-21 Thread Paul Gilmartin
On Tue, 21 Jun 2022 12:55:18 +, Seymour J Metz wrote: >Lots of Yiddish idioms are in the form of a question, and if a translator >misses the implied question mark, all meaning is lost. The phrase "I could >care less" is the result of applying a tin ear to a sarcastic Yiddish idiom. >The Yi

Re: Some UNIX file usage questions

2022-06-21 Thread Paul Gilmartin
On Mon, 20 Jun 2022 21:55:07 -0700, Charles Mills wrote: >> But is loss of a single record disastrous? > >No, I said earlier, this is not banking transactions where a lack of 2-phase >commit risks losing a bunch of money between the cracks. > What's your crash recovery plan? o Create a new file

Re: Some UNIX file usage questions

2022-06-20 Thread Paul Gilmartin
On Mon, 20 Jun 2022 22:23:45 -0500, Mike Schwab wrote: >24 byte record would fit 82 records per track. >http://www.bitsavers.org/pdf/ibm/dasd/reference_summary/GX26-4577-0_3390_Reference_Summary_Jun89.pdf > Why are people discussing "tracks" in a thread titled ... Ummm, let me look above ... "So

Re: Some UNIX file usage questions

2022-06-20 Thread Paul Gilmartin
On Mon, 20 Jun 2022 14:39:20 -0700, Charles Mills wrote: >Nay! Rexx passes everything by value, both to internal and to external >functions. So passing will give the assembler code 200 zero bytes to >play with but it will go away on return. > There might be a *slightly* better alternative. The

Re: How to search large loadlib

2022-06-20 Thread Paul Gilmartin
On Mon, 20 Jun 2022 14:28:32 -0500, Lionel B. Dyck wrote: >Check out the PDS command on cbttape file 182. It has many scan and list >options. > Can it search a PDSE? (Of course it could LOAD each member; searh; DELETE.) >> On Jun 20, 2022, at 2:25 PM, Itschak Mugzach wrote: >> >> Assuming

Re: Some UNIX file usage questions

2022-06-20 Thread Paul Gilmartin
On Tue, 21 Jun 2022 02:10:13 +0800, David Crayford wrote: >I think I understand what Charles is doing. > >context = copies('00'x,200) <-- state for HLASM program >wait_time = 30 > >do forever >     res = console(context, wait_time) >     select >   when res = 'T' then iterate >       when res

Re: Some UNIX file usage questions

2022-06-20 Thread Paul Gilmartin
I'll correct my earlier misstatement. You did not say you were the client; merely "-n-house". On Mon, 20 Jun 2022 10:41:25 -0700, Charles Mills wrote: >The ECB is not in the Rexx. It is in MVS-owned storage IIRC. > I believe ECBs routinely occupy user-owned storage. >-Original Message-

Re: Some UNIX file usage questions

2022-06-20 Thread Paul Gilmartin
On Mon, 20 Jun 2022 10:24:17 -0700, Charles Mills wrote: >... >Then the ECB would already be posted and the WAIT ECBLIST would be satisfied >immediately. It is a consideration for all such routines, and not a big deal, >unless the coder is stupid enough to reset the ECB before the WAIT, rathe

Re: Some UNIX file usage questions

2022-06-20 Thread Paul Gilmartin
On Tue, 21 Jun 2022 00:58:29 +0800, David Crayford wrote: >I take it you must be the client? > Actually, he said that in the first ply. >... I can't fathom any client who would be >stupid enough to allow a vendor to write code in their language of > This is becoming excessively ad hominem, d

Re: Some UNIX file usage questions

2022-06-20 Thread Paul Gilmartin
On Mon, 20 Jun 2022 08:47:49 -0700, Charles Mills wrote: >... >The assembler routine will take as input a delay time in hundredths of a >second (because of STIMER), do a WAIT ECBLIST, and return one of > >'T' -- the time expired >'P' -- the operator entered STOP >'F modify command operand' --

Re: Some UNIX file usage questions

2022-06-19 Thread Paul Gilmartin
On Sun, 19 Jun 2022 19:45:49 +, Farley, Peter x23353 wrote: >... >For discretely split data files (stop writing at EOD/end-of-period and start a >new file) using the same approach as the unix syslog demon would seem to be >useful. Rename current to current-plus-timed-qualifier (date and

Re: Some UNIX file usage questions

2022-06-19 Thread Paul Gilmartin
On Sun, 19 Jun 2022 21:21:28 +0200, Bernd Oppolzer wrote: >I don't code DISP=MOD, if I want to append data to an existing dataset; >instead I use fopen with an "a" in the mode parameter. > I wonder how the runtime handles that. I suppose it could POINT to DS1LSTAR. >My files have RECFM=FB, not

Re: Some UNIX file usage questions

2022-06-19 Thread Paul Gilmartin
On Sun, 19 Jun 2022 18:33:42 +, Seymour J Metz wrote: > >Are you claiming that syscall is a convenient way to do I/O in REXX? I find >ANSI stream I/O to be much cleaner. > Make lemonade. Does ANSI stream I/O provide full control of such as O_CREAT, O_EXCL, O_TRUNC, O_APPEND, ... as syscall

Re: Some UNIX file usage questions

2022-06-19 Thread Paul Gilmartin
On Sun, 19 Jun 2022 20:04:47 +0200, Bernd Oppolzer wrote: >... That is, if you do fopen ("dd:outfile","wa"), >a file allocated to OUTFILE which has some records already (in a block which >is not filled up completely) will be filled before the next empty block is >allocated. > >At least, this

Re: Some UNIX file usage questions

2022-06-19 Thread Paul Gilmartin
On Sun, 19 Jun 2022 17:36:28 +, Seymour J Metz wrote: >Does Unix System Services support RECFM=FBS? If it does, then fopen needs to >properly handle short blocks for append. > Probably not. Even QSAM can't do that, even though it should. Submit an RFE. Or RYO with BSAM. There's an argumen

Re: Some UNIX file usage questions

2022-06-19 Thread Paul Gilmartin
On Sun, 19 Jun 2022 14:53:31 +, Seymour J Metz wrote: > >Stream I/O is not part of UNIX�, > "not" ??? >... and is available with any ANSI compliant Rexx, e.g., Regina. Alas, > TSO/E REXX is not ANSI compliant > Alas. >... and IBM only supports stream I/O in Unix shells. I'm not awa

Re: Some UNIX file usage questions

2022-06-19 Thread Paul Gilmartin
thinking of: <https://www.ibm.com/docs/en/zos/2.5.0?topic=processing-using-syscall-commands>? (That page is a mere fraction of what's available.) > ... but it seems much more straightforward to use USS >files with USS functions. > Amen. >On Sat, Jun 18, 2022 at 5:05 PM Paul

Re: Some UNIX file usage questions

2022-06-18 Thread Paul Gilmartin
On Sat, 18 Jun 2022 12:18:12 -0700, Charles Mills wrote: >That's a thought. I had not thought of that. I am REAL familiar with SMF >including user SMF records. APF authorization is not a problem -- I am the >master of this universe. > I suspect that mixing MVS and UNIX technologies might embody

Re: Some UNIX file usage questions

2022-06-18 Thread Paul Gilmartin
On Sat, 18 Jun 2022 12:35:36 -0500, John McKown wrote: >... >Remember that the actual I/O buffer is in a UNIX filesystem address >space. So an application reading & writing a file are actually getting data >from it. If you were to save data (or run some program which updates it), >the actu

Re: Some UNIX file usage questions

2022-06-18 Thread Paul Gilmartin
On Sat, 18 Jun 2022 09:51:45 -0700, Charles Mills wrote: >... >I picture writing the started task in Rexx, so I would have to write to a DD >name allocated to the UNIX file (either dynamically or with JCL), not with >"native" C fopen(), fwrite(), etc. Does that change any of the answers? > Wh

Re: Will SFTP work with DSFS?

2022-06-17 Thread Paul Gilmartin
On Fri, 17 Jun 2022 07:05:51 -0500, Bill Schoen wrote: >sftp and most unix utilities will work with dsfs. >Utilities (like compilers) that expect names of the form name.type probably >will not at this time. > Thanks. Will "most" be explained in a User's Guide? A Black Team-style example: #! /

Re: SFTP JOB Data parameter

2022-06-17 Thread Paul Gilmartin
On Fri, 17 Jun 2022 06:35:27 -0500, John S. Giltner, Jr. wrote: >Actually I think he needs: > > echo `date '+get EBC-GOV-%Y%m%d.txt'` > >To get the format of the date he needs. > Not quite, but: date '+get EBC-GOV-%Y/%m/%d.txt' o Why bother with "echo" of a command substitution? o IIRC, the

Re: SFTP JOB Data parameter

2022-06-16 Thread Paul Gilmartin
On Thu, 16 Jun 2022 14:47:00 +, Seymour J Metz wrote: >Read up on syscalls('ON'), address syscall and address sh. > syscalls('ON') can be used in any environment; address sh requires that the Rexx script have been started from shell amd is not enabled by syscalls('ON'). I suspect the rational

Re: SFTP JOB Data parameter

2022-06-16 Thread Paul Gilmartin
-symbol freely subsequently. ____ >From: Paul Gilmartin >Sent: Thursday, June 16, 2022 9:27 AM > >Doesn't SYMBOLS=({JCLONLY|EXECSYS|CNVTSYS} suffice to resolve that? > >There remains the phobia concernin

Re: SFTP JOB Data parameter

2022-06-16 Thread Paul Gilmartin
On Thu, 16 Jun 2022 13:09:53 +, Seymour J Metz wrote: >This has been discussed here many times. The issue is that the results vary >depending on ehrn and where you evaluate them. > Doesn't SYMBOLS=({JCLONLY|EXECSYS|CNVTSYS} suffice to resolve that? There remains the phobia concerning the an

Will SFTP work with DSFS?

2022-06-16 Thread Paul Gilmartin
Will SFTP work with DSFS? Just wondering. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: SFTP JOB Data parameter

2022-06-16 Thread Paul Gilmartin
On Wed, 15 Jun 2022 18:31:04 +0300, saurabh khandelwal wrote: > >If I use rexx then how will I be able to use shell command in same job > In this thread, everyone seems to be advocating his favorite utility. I'll add mine: . BPXWUNIX

Re: SFTP JOB Data parameter

2022-06-16 Thread Paul Gilmartin
On Wed, 15 Jun 2022 17:26:32 +, Farley, Peter x23353 wrote: >Thanks Sri, I did not know about SYSSYM=ALLOW. But that raises the question >why NOT always allow system symbols in every batch initiator? Allowing them >just seems like a no-brainer to me, but then I'm just an application >pro

Re: SFTP JOB Data parameter

2022-06-15 Thread Paul Gilmartin
On Wed, 15 Jun 2022 13:11:05 +, Seymour J Metz wrote: >Write a REXX script to do the file transfer. You can use the date('S') >function to generate the date in the format mmdd, then parse out the >component to build your dsn. > I would have done something similar. But the OP was on a p

Re: SFTP JOB Data parameter

2022-06-15 Thread Paul Gilmartin
tution element in the argument to the "date" command. Did you try my suggestion: date '+get EBC-GOV-%D.txt' ??? >On Wed, Jun 15, 2022, 15:54 Paul Gilmartin wrote: >> > >> >I am am running below Job in TSO env and getting to get file file from >>

Re: SFTP JOB Data parameter

2022-06-15 Thread Paul Gilmartin
On Wed, 15 Jun 2022 13:44:43 +0300, saurabh khandelwal wrote: > >I am am running below Job in TSO env and getting to get file file from >windows to Mainframe env. > >Initially file was static and all worked well. But now, requirement is to >get the file, which has current time stamp on daily basis

Re: Rename Alias in a Load libary

2022-06-14 Thread Paul Gilmartin
On Tue, 14 Jun 2022 21:15:39 -0500, Mike Schwab wrote: >Can't. Create another alias. Delete old alias name. > Does it make a difference? In fact, if the directory entries are kept in alphabetical order it doesn't work to overwrite the old name in place with a new name -- a new entry must be c

Ne escape! (was: FTP Software ...)

2022-06-14 Thread Paul Gilmartin
On Tue, 14 Jun 2022 23:19:01 +0100, Jeremy Nicoll wrote: > >>>None of them, of course, is a programming language. >>> >> But Rexx certainly is, and can implement Edit macros. > >Yes, but it's trivial, in a macro, to convert arbitrary strings of >characters into their hex representations and issue

Re: FTP Software for Mainframe to PC

2022-06-14 Thread Paul Gilmartin
tainly is, and can implement Edit macros. > >>On Tue, 14 Jun 2022, at 15:05, Paul Gilmartin wrote: >> >>> Yup. Pet peeve: ISPF Edit has no way of escaping apostrophe, which otheer >>> IBM languages >> >It's repe

Re: FTP Software for Mainframe to PC

2022-06-14 Thread Paul Gilmartin
On Tue, 14 Jun 2022 15:16:14 +0100, Jeremy Nicoll wrote: >On Tue, 14 Jun 2022, at 15:05, Paul Gilmartin wrote: > >> Yup. Pet peeve: ISPF Edit has no way of escaping apostrophe, which otheer >> IBM languages > >But "ispf edit" isn't a language. What do

Re: FTP Software for Mainframe to PC

2022-06-14 Thread Paul Gilmartin
On Tue, 14 Jun 2022 13:00:18 +, Seymour J Metz wrote: >IND$FILE uses the 3270 data stream, so there's no way around locking the >terminal. > Tunneling? After all, TN3270 tunnels via TELNET, and TELNET tunnels through AT-TLS. >Forking an FTP command might be a better option. > >IBM has nev

Re: ISPF WSA and ISPF Plugin for z/OSMF

2022-06-12 Thread Paul Gilmartin
On Sun, 12 Jun 2022 16:15:11 -0400, Don Leahy wrote: >Yes, ISPF stats are too easily manipulated to be reliable. I regard them >as a convenience and would not try to use them for serious source control >purposes. > Here, I laud SMP/E for employing relations in a VSAM data base rather than file

Re: ISPF WSA and ISPF Plugin for z/OSMF

2022-06-12 Thread Paul Gilmartin
On Sun, 12 Jun 2022 10:26:38 -0400, Don Leahy wrote: >It was also aware of ISPF stats, so on a WS to host xfer it could compare >dates and only transfer changed files. > But beware. Timestamps at both ends may be under user control. I have scripts that deliberately change timestamps of some fi

Re: z/VM FTP query

2022-06-11 Thread Paul Gilmartin
On Sat, 11 Jun 2022 21:33:05 -0500, Alan Altmark wrote: > >>1. Is there a better forum for this question ? >>2. If not... >> >1. EBCDIC >2. MODE B > >The client (assuming you haven't turned it off with the "sendsite" command) >will provide or discover the LRECL and RECFM of the file automatica

Re: FTP Software for Mainframe to PC

2022-06-10 Thread Paul Gilmartin
On Fri, 10 Jun 2022 17:04:12 -0400, Rob Schramm wrote: > >If the question is "does anyone have a list of FTP server software >packages"? Because if they stick to the RFCs .. they should all work to >communicate with the z/OS FTP client. > Not necessarily. Many fail to support particular values of

Re: FTP Software for Mainframe to PC

2022-06-10 Thread Paul Gilmartin
On Fri, 10 Jun 2022 12:46:38 -0700, Tom Brennan wrote: > ... Now, >someone could say locking your keyboard prevents you from, say, doing >updates to the same dataset you're running FTP against. > FSVO "you". You could meddle with a concurrent batch job. >... I would expect >normal enqueues

Re: FTP Software for Mainframe to PC

2022-06-10 Thread Paul Gilmartin
On Fri, 10 Jun 2022 08:39:31 -0700, Tom Brennan wrote: >And I remember working with an Attachmate TN3270 emulator in the late >1990's which would (for no technical reason) lock up your TSO session >while doing an FTP transfer. > How could it have reported status or completion if it transferred con

Re: Receive from Network failed

2022-06-10 Thread Paul Gilmartin
On Fri, 10 Jun 2022 12:57:15 -0500, Matthew Stitt wrote: >You would not happen to want to use JAVA V11? It will not work. I must keep >JAVA V8 around for SMPE network stuff. > Bummer. Is there an APAR? It's extraordinarily difficult to test every revision for side effects. -- gil

Re: ] Re: "A Rexx" (or "A REXX")

2022-06-10 Thread Paul Gilmartin
On Fri, 10 Jun 2022 16:58:00 +, Seymour J Metz wrote: >And Madchen is neuter. > Like all diminutives. Mark Twain remarked on that. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to li

<    8   9   10   11   12   13   14   15   16   17   >