Re: [CMS-PIPELINES] PIPE vs timestamp math

2024-05-17 Thread Rob van der Heij
I like this with an extra REXX stage. But you could also use the "x2t" conversion in SPEC and then use "greg2sec" for the full seconds part, and divert the fraction for the microseconds. /* TIMEDIFF REXX Compute difference between two TOD clocks */ /*

Re: [CMS-PIPELINES] PICK and field

2024-05-09 Thread Rob van der Heij
You're right. Locate fs 5e f6 /a/ is it, but you can do great things with substr On Thu, May 9, 2024, 14:00 James Vincent wrote: > Rob, you didn't really want that "substr" in there, did you? It won't work > as shown anyway. > > -- *James Vincent* > > > On Thu,

Re: [CMS-PIPELINES] PICK and field

2024-05-09 Thread Rob van der Heij
It's locate instead locate fs 5e substr f2 /a/ For 'a' anywhere in field 2 On Thu, May 9, 2024, 12:11 Alain Benvéniste wrote: > Hi, > > I would like to select records where the target is found in a field. > So I thought to use PICK. > > Input file is : > a;a;a;a;a;zaz;a;a;a;a > > The pipe : >

Re: [CMS-PIPELINES] first group of matching records

2024-04-15 Thread Rob van der Heij
You could probably use "fillup" before the "gate" if you want to avoid a gate-dam setup. But I think this one is cute as well 'addpipe (end \ name GREG1.REXX:7)', '\ *: ', '| o: not fanout ', '| d: deal secondary latch ', '| *: ', '\ o: ', '| unique' range 'first',/*

Re: [CMS-PIPELINES] >SFS ERROR 1180

2023-12-14 Thread Rob van der Heij
On Thu, 14 Dec 2023 at 08:45, Kris Buelens wrote: > I have some relatively vague memories that someone with SFS admin rights > could connect to SFS using different authorities concurrently. > Thinking a bit deeper: the FTP server uses this during an FTP PUT or GET > with SFS. I don't think it

Re: [CMS-PIPELINES] >SFS ERROR 1180

2023-12-13 Thread Rob van der Heij
On Thu, 14 Dec 2023 at 05:40, Donald Russell wrote: > > Thanks Rob, > Since >SFS uses a private work unit by default, doesn’t that mean it gets a > new work unit before connecting to the sfs server? Diag d4 is done before > the pipe command, so I’m expecting the new connection to appear to

Re: [CMS-PIPELINES] >SFS ERROR 1180

2023-12-13 Thread Rob van der Heij
On Wed, 13 Dec 2023 at 23:37, Alan Altmark wrote: > If you're going to play with the userid, you need to use workunits. Once > your APPC connection to the SFS server is established, changing your userid > doesn't affect operations over the existing connection. Workunits create > new

Re: [CMS-PIPELINES] z/VM 7.2 tcpclient not getting response

2023-08-15 Thread Rob van der Heij
On Tue, 15 Aug 2023 at 18:11, Donald Russell wrote: > Using the hole/elastic/fanin trick worked. > > We’ll, that’s hitting the code with the ugly stick isn’t it? Lol. > > I’m hoping that’s a “bug?” related to linger not lingering properly. > > Seriously, thanks for the workaround. > > Cheers, >

Re: [CMS-PIPELINES] z/VM 7.2 tcpclient not getting response

2023-08-15 Thread Rob van der Heij
On Tue, 15 Aug 2023 at 14:17, Alan Altmark wrote: > That’s not just SSL. Only the app knows when it has received all the data. > Only then should it close the socket. So an app waits for a certain > amount of time or until it gets and end-of-data indicator. That might be a > specific byte

Re: [CMS-PIPELINES] z/VM 7.2 tcpclient not getting response

2023-08-15 Thread Rob van der Heij
I suspect this is a feature of the VM SSL implementation to close the inbound socket when the application closes the outbound connection, discarding any data that is in transit outside or in the SSL path. That happened initially also in the other direction, but I was able to change some minds

Re: [CMS-PIPELINES] where are the FPLKWDTB, FPLEPTBL, and FPLMSGTB execs?

2023-05-21 Thread Rob van der Heij
Dave, I'm afraid they didn't make it in the plumbing upgrade with 6.4 since we struggled with the challenge that existing build processes relied on the old set of programs. You may notice the descriptions in the Appendix lack details on options and format of input files, and when we realized the

Re: [CMS-PIPELINES] split at a column

2023-03-22 Thread Rob van der Heij
On Wed, 22 Mar 2023 at 12:09, John P. Hartmann wrote: > On 3/22/23 09:21, Rob van der Heij wrote: > > .. | y: if locate -80 | x: if chop -80 | x: | y: | ... > > Why -80 ? That would make the second record limited to 80 rather than > the first, as I believe Glenn wants. >

Re: [CMS-PIPELINES] split at a column

2023-03-22 Thread Rob van der Heij
On Wed, 22 Mar 2023 at 01:56, Glenn Knickerbocker wrote: > Partly because they're all solutions to different things. I have a bad > habit of editing out too much of what I think is repetitive, leaving > things confusingly out of context. > > Here's my original statement: > > > I had records to

Re: [CMS-PIPELINES] split at a column

2023-03-21 Thread Rob van der Heij
On Tue, 21 Mar 2023 at 23:27, Glenn Knickerbocker wrote: > pipe literal asdfasdfasdf|split 5 before not 00-ff|cons|chop 5 before > not 00-ff|cons > After all your solutions, I still don't understand what you were trying to do.

Re: [CMS-PIPELINES] split at a column

2023-03-17 Thread Rob van der Heij
On Fri, 17 Mar 2023 at 16:51, Glenn Knickerbocker wrote: > ... | split -80 before 00-ff 1 | ... > So you want to split 80 from the right? Is that .. | x: if chop -80 | x: | ... ?

Re: [CMS-PIPELINES] deblocking with various possible linends

2023-03-16 Thread Rob van der Heij
On Thu, 16 Mar 2023 at 23:29, Glenn Knickerbocker wrote: > On 3/16/2023 4:46 PM, Rob van der Heij wrote: > > alternatives (with preference for the first one) > > - line end is any unique sequence of the specified characters, so if you > > specify the CR and LF as candidat

Re: [CMS-PIPELINES] deblocking with various possible linends

2023-03-16 Thread Rob van der Heij
On Thu, 16 Mar 2023 at 22:33, Paul Gilmartin wrote: > > Otherwise, the format of the record separator might be an optional > parameter to your program. > We already have the ability to specify the line-end character or string. The discussion was about when you don't know in advance what

Re: [CMS-PIPELINES] juxtapose with next

2023-03-16 Thread Rob van der Heij
On Thu, 16 Mar 2023 at 21:29, Glenn Knickerbocker wrote: > I was really thinking of the more general case where the list is already > in separate records to start with. I guess the thing to do would be to > inject a null record into the list after each container record, and use > BUFFER 1 to

Re: [CMS-PIPELINES] deblocking with various possible linends

2023-03-16 Thread Rob van der Heij
On Thu, 16 Mar 2023 at 21:29, Glenn Knickerbocker wrote: > Figuring out the reasonable assumptions to make to make that decision is > the biggest part of what I meant by "getting it right." > Yes, I think we all realized the ambiguity. I was considering these alternatives (with preference for

Re: [CMS-PIPELINES] deblocking with various possible linends

2023-03-14 Thread Rob van der Heij
Splitting a record with no words will pass the record (see example in usage note :-) On Wed, 15 Mar 2023 at 01:13, Glenn Knickerbocker wrote: > On Tue, 14 Mar 2023 08:07:15 +0100, Rob wrote: > >On Tue, 14 Mar 2023 at 00:44, Donald Russell > wrote: > >> —> ... | deblock linend 0a | split 0d |

Re: [CMS-PIPELINES] deblocking with various possible linends

2023-03-14 Thread Rob van der Heij
On Tue, 14 Mar 2023 at 16:59, John P. Hartmann wrote: > On 3/14/23 16:05, Rob van der Heij wrote: > > The repeating "range" doesn't really do that, but I just checked that > > strip x0d 1 will take one from either or both sides of the record. > > You're ri

Re: [CMS-PIPELINES] deblocking with various possible linends

2023-03-14 Thread Rob van der Heij
On Tue, 14 Mar 2023 at 15:56, John P. Hartmann wrote: > A more reliable way to remove just one cr from either end might be > something like > > change (1 -1) x0d // > The repeating "range" doesn't really do that, but I just checked that strip x0d 1 will take one from either or both sides of

Re: [CMS-PIPELINES] deblocking with various possible linends

2023-03-14 Thread Rob van der Heij
On Tue, 14 Mar 2023 at 00:44, Donald Russell wrote: > —> ... | deblock linend 0a | split 0d | ... > > Could that cause extra lines? > Yes, it does. I agree removing a trailing x0d would have done. But the challenge we see is that a file with just CR will buffer the input before splitting.

Re: [CMS-PIPELINES] Convert to bit value in Specs

2023-01-04 Thread Rob van der Heij
On Wed, 4 Jan 2023 at 18:44, Berry van Sleeuwen wrote: So to obtain the value I have: > set #10:=substr(z,#2+(#0*#3)+1,#3) > set #13:=c2x(substr(#10,5,1)) > set #14:=c2x(substr(#10,6,1)) > where #10 is the record in the array and #13 and #14 are the bit values. I > can convert the value into a

Re: [CMS-PIPELINES] Debugging a data exception

2022-12-06 Thread Rob van der Heij
Yep, that's CMS release storage, so something stepped on outside the block and that troubled CMS when chaining the block back into free memory. I will go through DMSFRR to see what it touched there, but I'm not sure we can trace that back. If the callpipe was replacing the output file, we've also

Re: [CMS-PIPELINES] Debugging a data exception

2022-12-06 Thread Rob van der Heij
I wouldn't be surprised if CMS Pipelines were just the innocent bystander running some CMS program that program checked. The ideal would have been to get a VMDUMP at the point where the program check occurred, but since we're probably past that opportunity, another idea would be to look what's at

Re: [CMS-PIPELINES] IF testing characters

2022-11-27 Thread Rob van der Heij
While this doesn't address your questions about SPEC, I do have a very interesting pipeline that uses almost all options of LOOKUP to go through a User Directory and determine gaps or re-allocate minidisks from one (or all) volumes to new volumes to generate DIRMAINT commands... Rob

Re: [CMS-PIPELINES] IF testing characters

2022-11-26 Thread Rob van der Heij
I think there’s the /= for “not equal” numeric, and /== for when it’sa string. Rob On Sat, 26 Nov 2022 at 13:15, Alain Benvéniste wrote: > It is just things i tested… > I suspect…. £ is # like @ is à… > So there no syntax to assign characters to a variable to test it through a > if ? > > >

Re: [CMS-PIPELINES] change question

2022-11-24 Thread Rob van der Heij
On Fri, 25 Nov 2022 at 01:21, Paul Gilmartin wrote: > On 11/24/22 13:17:46, Rob van der Heij wrote: > > On Thu, 24 Nov 2022 at 21:14, Alain Benveniste wrote: > >> > >> How to change (3.5) "no matter what there is" by blanks ? > > > > How a

Re: [CMS-PIPELINES] change question

2022-11-24 Thread Rob van der Heij
On Thu, 24 Nov 2022 at 21:23, a.benveni...@free.fr wrote: > Rob, > > Yes that’s what a similar thing I did with a specs ‘jumping ‘ over the > unwanted field… > You don't really need to jump over it, my example first copied the entire record, and then you fill the specified part with a space

Re: [CMS-PIPELINES] change question

2022-11-24 Thread Rob van der Heij
On Thu, 24 Nov 2022 at 21:14, Alain Benveniste wrote: > > Probably asked before but the filter seems not to work properly.. > > How to change (3.5) "no matter what there is" by blanks ? > > something like in xedit : zone 3 5 + change /$$$/ / Alain, How about one of these? | spec 1-* 1 ,

Re: [CMS-PIPELINES] A TIME command?

2022-10-20 Thread Rob van der Heij
On Thu, 20 Oct 2022 at 21:22, Rob van der Heij wrote: > On Thu, 20 Oct 2022 at 21:04, Rob van der Heij wrote: > >> Just a small EXEC that I did a while ago. Let me find a copy when I see >> my 3270 >> > > If you can do without much explanatory comments: > h

Re: [CMS-PIPELINES] A TIME command?

2022-10-20 Thread Rob van der Heij
On Thu, 20 Oct 2022 at 21:04, Rob van der Heij wrote: > Just a small EXEC that I did a while ago. Let me find a copy when I see my > 3270 > If you can do without much explanatory comments: https://gist.githubusercontent.com/rvdheij/97e7de1ecc39a40b86db7281bff9cee7

Re: [CMS-PIPELINES] A TIME command?

2022-10-20 Thread Rob van der Heij
Just a small EXEC that I did a while ago. Let me find a copy when I see my 3270 On Thu, 20 Oct 2022 at 21:02, Dave Jones wrote: > In a blog post by our very own Sir Rob showed this example code: > > time pipe (end \) < dmsgpi maclib | g: gzip 2 | count bytes | cons \ g: > | cons > Deflate

Re: [CMS-PIPELINES] FPLRVR236E Too much data for variable MSTEM.5020

2022-08-24 Thread Rob van der Heij
On Wed, 24 Aug 2022 at 16:32, Stanislawski, Shawn (National VM Capability) < shaw...@dxc.com> wrote: > 16MB? 24bit addressing related somehow, is it? > But yes, it is very likely the assignment of this REXX stemmed variable > attempts a storage request over 16MB (including control information).

Re: [CMS-PIPELINES] FPLRVR236E Too much data for variable MSTEM.5020

2022-08-24 Thread Rob van der Heij
A single REXX variable is limited to 16M because of how REXX works. When you're doing a REXX stemmed variable each shorter than that, you can fill up CMS available memory with them. Sir Rob the Plumber On Wed, 24 Aug 2022 at 00:40, Stanislawski, Shawn (National VM Capability) < shaw...@dxc.com>

Re: [CMS-PIPELINES] Fwd: CALLPIPE ends (-3)

2022-08-12 Thread Rob van der Heij
On Fri, 12 Aug 2022 at 17:51, Donald Russell wrote: > You don’t need to EXECLOAD an exec file as a rexx file to use it as a pipe > stage. I’d argue that makes things even more obscure. (Did you also do the > EXECDROP) Exactly Don, but if someone is flabbergasted by return code -3 we don’t help

Re: [CMS-PIPELINES] Test

2022-08-10 Thread Rob van der Heij
You might not see your own when the settings are not to echo your own posts to you. On Wed, 10 Aug 2022 at 17:10, Steve Thompson wrote: > Checking to see if I'm subscribed and getting messages again. > > Somehow this all stopped after 26JUN22 @ 13:38 US Eastern. > > Regards, > Steve Thompson >

Re: [CMS-PIPELINES] Trapping or preventing pipes error messages?

2022-06-25 Thread Rob van der Heij
While you know that you should be talking to your BatchPipes support folks ;-) You can wrap it in a pipeline to run though PIPCMD, but you'd have to tell from the output whether it's an error message or valid content. pipe literal callpipe listcat ntpx || *: |pipcmd | cons On Sat, 25 Jun 2022

Re: [CMS-PIPELINES] Where is the documentation for the IUCV stages?

2022-06-24 Thread Rob van der Heij
On Fri, 24 Jun 2022 at 17:57, Dave Jones wrote: > Hello, all. > > I am trying to write a simple Rexx client that communicates to another > user id using IUCV. I can't seem to find the documentation for the > iucvclient, and iucvlisten stages? Did I miss something here? > > Many thanks and have a

Re: [CMS-PIPELINES] LOOKUP AUTOADD wishlist: different key fields

2022-06-06 Thread Rob van der Heij
On Mon, 6 Jun 2022 at 21:37, John P. Hartmann wrote: > So which is the master and which is the detail? > > On 6/6/22 21:32, Glenn Knickerbocker wrote: > >> PIPE ... | lookup autoadd w3 w2 ... > >> FPLLUP761E Different key fields not allowed with AUTOADD > Right. I can't see how a different

Re: [CMS-PIPELINES] IF stage

2022-05-06 Thread Rob van der Heij
On Fri, 6 May 2022 at 04:02, Hobart Spitz wrote: > Yes, it's very old. It's the z/OS version. > But you know that IF is just a convenience and the equivalent topology can be crafted by bending the pipes on your knee. > Can anyone share the if callpipe code? > I would have bet you would

Re: [CMS-PIPELINES] looking for files....

2022-04-25 Thread Rob van der Heij
https://github.com/jphartmann On Mon, 25 Apr 2022 at 16:05, John P. Hartmann wrote: > They should be in a VM archive on github, but as I can no longer access > github, you'll have to do some guessing as to where. Is there a CMSLIB > project? > > On 4/24/22 16:48, Dave Jones wrote: > > Hello,

Re: [CMS-PIPELINES] SSL/TLS question with tcpdata

2022-04-07 Thread Rob van der Heij
On Thu, 7 Apr 2022 at 20:04, Dave Jones wrote: > Yeah, that works even better. > Trying to make it a full week without disagreeing with Alan, let me just complement his post... Indeed, certificates these days have the hostname in the Subject Alternate Name extension.Just like your browser, the

Re: [CMS-PIPELINES] SSL/TLS question with tcpdata

2022-04-07 Thread Rob van der Heij
On Thu, 7 Apr 2022 at 16:02, Dave Jones wrote: > > FPLTCQ1015E ERRNO 10410: 10410 > FPLMSG004I ... Issued from stage 3 of pipeline 3 name "WEENYWEB.REXX:7" > FPLMSG001I ... Running "tcpdata TLSLABEL SMBSSI" > > Turns out that the SSL error number 410 means "SSL message format is > incorrect.". >

Re: [CMS-PIPELINES] PIPEs question

2022-01-25 Thread Rob van der Heij
On Sun, 23 Jan 2022 at 23:10, Jack Woehr wrote: > On 1/23/22 2:55 PM, Rob van der Heij wrote: > > The > > motivation of not having to learn something new is less convincing, I > think. > > Universal axiom, eh, friend?! > What I tried to say is that once we tr

Re: [CMS-PIPELINES] Will miss CMS/TSO Pipelines

2022-01-25 Thread Rob van der Heij
On Mon, 24 Jan 2022 at 14:00, René Jansen wrote: > I am still baffled by the mores on this list. Please remember that > imitation is still the sincerest form of flattery. > I would argue that's a unique view that's not necessarily shared by large brand owners, for example. But it will certainly

Re: [CMS-PIPELINES] PIPEs question

2022-01-23 Thread Rob van der Heij
On Sun, 23 Jan 2022 at 17:27, Jack Woehr wrote: > Well, what I was idly wondering was whether the features exposed in CMS > Pipelines can return the parenthesized groups in a regex. > No, the GREP we're talking about just selects records that match the regular expression. When I did the PCRE

Re: [CMS-PIPELINES] PIPEs question

2022-01-23 Thread Rob van der Heij
Diverting the thread ... On Fri, 21 Jan 2022 at 16:14, Dave Jones wrote: > Hi, Peter. > When I see a task like your's "need to check this message for either of > the strings below", I think about using grep. Several versions of grep > (egrep, fgrep, and ggrep) are supported by CMS Pipelines in

Re: [CMS-PIPELINES] Pipe stage for detecting specific external interruptions

2021-12-06 Thread Rob van der Heij
On Mon, 6 Dec 2021 at 19:10, David Boyes wrote: > 1. Create a virtual machine SYSALERT running an application (maybe the > existing SHUTTRAP tool) that enables an external interrupt handler and > connects to *SIGNAL with a specific group id and waits for an external > interrupt other than the

Re: [CMS-PIPELINES] Pipe stage for detecting specific external interruptions

2021-12-02 Thread Rob van der Heij
On Thu, 2 Dec 2021 at 17:56, Bruce Hayden wrote: > +1 for me. What I do now is use SHUTTRAP to send an smsg that I trap in > STARMSG. For timezone changes, watch for the CP message via CP SET CPCONIO > IUCV. An external interrupt event stage would be welcomed. We age that those specific

Re: [CMS-PIPELINES] Pipe stage for detecting specific external interruptions

2021-12-02 Thread Rob van der Heij
On Thu, 2 Dec 2021 at 15:58, David Boyes wrote: > Shooting the breeze a bit, a question arose as to how to best handle > processing the external interrupt used by SIGNAL SHUTDOWN to provide a tidy > way to terminate a server gracefully when things are supposed to shut down. > A quick look at the

Re: [CMS-PIPELINES] sqrt

2021-11-30 Thread Rob van der Heij
On Tue, 30 Nov 2021 at 03:14, DeWayne Thomas wrote: > Thank you, Mike and Rob. S0C7s are no longer a plague. :-) Probably > an elementary question here, but does the 'a+0' make the result binary? > Is that why this works? > No, the trick is that it loads the intermediate result of the

Re: [CMS-PIPELINES] sqrt

2021-11-29 Thread Rob van der Heij
By apologies for the abend. I think we could have responded differently. If you define a structure with a binary value like this: PIPE literal :dewayne square u l 2 | structure add thread PIPE strliteral x06e4 | spec qual dewayne 1 print sqrt(square) 1 | cons That should work. And "spec

Re: [CMS-PIPELINES] Split a file with varying output names

2021-10-12 Thread Rob van der Heij
I think Kris once did a PUTFILES REXX that implemented one or two of the common techniques. When your records are sorted on output file, you can do a sipping pipeline that takes all records for the same output in each sip. Something like do forever 'peekto line' parse var line tag .

Re: [CMS-PIPELINES] PIPSYSF question....

2021-09-17 Thread Rob van der Heij
On Fri, 17 Sep 2021 at 20:41, John P. Hartmann wrote: > > > My suggestion, Dave, is that you go through the contents of PIPSYSF and > then tell IBM which function you really want integrated and supported. That’s my suggestion as well. There’s things in the pipeline to do the entire lot of

Re: [CMS-PIPELINES] PL/j examples

2021-06-19 Thread Rob van der Heij
On Sat, 19 Jun 2021 at 21:36, Dave Jones wrote: > Hello, all. I am still working with PL/j. Rob's paper says something > about a HLA macro that invokes the HLASM; does anyone know where to find > it? Many thanks. > http://vm.marist.edu/~pipeline/#PupHla Rob

Re: [CMS-PIPELINES] PL/j examples

2021-06-15 Thread Rob van der Heij
On Tue, 15 Jun 2021 at 19:52, DeWayne Thomas wrote: > Hi Rob, > > For sport, I just tried to compile RMHAES (second link) and it > looks good until the load where it wants FPLKWDIG. I'm not finding that > anywhere as a standalone TEXT file nor in any TXTLIBs on 6.4 nor 7.1. > Is it in

Re: [CMS-PIPELINES] PL/j examples

2021-06-13 Thread Rob van der Heij
And if you want a stand alone filter that would go in a filter package rather than in PIPMOD, you might enjoy these examples https://gist.github.com/rvdheij/0a6cc9528ee10f6ec1b53b4bd431f878 https://gist.github.com/rvdheij/d75608dde3e8fd061870a42f2cdb4207 Rob On Sun, 13 Jun 2021 at 20:02, John

Re: [CMS-PIPELINES] Question about starsys *vmevent handling......

2021-04-15 Thread Rob van der Heij
On Thu, 15 Apr 2021 at 16:32, Rob van der Heij wrote: > On Thu, 15 Apr 2021 at 16:16, John P. Hartmann wrote: > >> Please trace IUCV to see the interrupt parameter and message number. >> > > I see it as well, and I'm trying to remember what I'm doing wrong, since > fo

Re: [CMS-PIPELINES] Question about starsys *vmevent handling......

2021-04-15 Thread Rob van der Heij
On Thu, 15 Apr 2021 at 16:16, John P. Hartmann wrote: > Please trace IUCV to see the interrupt parameter and message number. > I see it as well, and I'm trying to remember what I'm doing wrong, since folks are using CMS Pipelines to catch VMEVENT stuff... Rob

Re: [CMS-PIPELINES] FPL120E in PUTFILES

2021-03-03 Thread Rob van der Heij
On Wed, 3 Mar 2021 at 17:39, van Sleeuwen, Berry wrote: > Oops, is that also a PUTFILES that's generally available? Mine is the one > I obtained from the VMTOOLS page. I didn't know any other version might > exists. > > I for sure assumed the VMTOOLS PUTFILES package and I guess Kris also >

Re: [CMS-PIPELINES] FPL120E in PUTFILES

2021-03-03 Thread Rob van der Heij
On Wed, 3 Mar 2021 at 14:17, John P. Hartmann wrote: > I didn't say that, but as long as Berry understands, all is fine. > > On 3/3/21 14:07, Rob van der Heij wrote: > > As John points out, when you're > > writing to SFS > No you didn't. I was concerned that Berry o

Re: [CMS-PIPELINES] FPL120E in PUTFILES

2021-03-03 Thread Rob van der Heij
If you get the records in chunks, it's really simple to write a sipping pipeline to take each chunk and write it to a file. You close it when you're done with the chunk. And you can decide whether you should append or rewrite the file. That's also helpful when you have some header record rather

Re: [CMS-PIPELINES] specifying an arbitrary string

2021-02-17 Thread Rob van der Heij
On Wed, 17 Feb 2021 at 07:06, Kris Buelens wrote: > What I did most of the time was convert to hex > 'PIPE literal X' || c2x(blah) '|.. > But Glenn is right that it doesn't cover the null string. I don't find myself too often in the situation where a null string would do and I don't want

Re: [CMS-PIPELINES] Cleanest "always read one record" segment?

2021-02-16 Thread Rob van der Heij
On Tue, 16 Feb 2021 at 00:19, Glenn Knickerbocker wrote: > What's your favorite thing to stick into a "sipping" pipeline so you > know it will always consume at least one record and not worry about > looping? I have a nagging feeling I'm overlooking something obvious > that's cheaper and safer

Re: [CMS-PIPELINES] Lookup with floor

2021-01-29 Thread Rob van der Heij
On Fri, 29 Jan 2021 at 14:23, John P. Hartmann wrote: > lookup floor 1 > > I must have been busy at the time in 2003. > Probably in a hurry to finish it for my birthday ;-)

Re: [CMS-PIPELINES] Lookup with floor

2021-01-29 Thread Rob van der Heij
On Fri, 29 Jan 2021 at 13:45, Alain Benvéniste wrote: > Do I open a issue for that ? > If you don't, I will put it on the list and eventually roll it into a future upgrade. Sir Rob the Plumber

Re: [CMS-PIPELINES] Lookup with floor

2021-01-29 Thread Rob van der Heij
On Fri, 29 Jan 2021 at 12:48, John P. Hartmann wrote: > There is something wrong here. LOOR is not a valid range, so F should > not be recognised as a abbreviation of FIELD, but it certainly looks > like that is what is happening. > It sure has bitten me before that LOOKUP was picky on the

Re: [CMS-PIPELINES] punch, rscs, reader and deblock

2021-01-17 Thread Rob van der Heij
On Sun, 17 Jan 2021 at 14:48, Kris Buelens wrote: > Probably there still is a chance that DEBLOCK CMS will complain when the > last meaningful record had a trailing blank. > Apparently the halfword 0 is missing, or there wouldn’t be a problem. You could strip trailing blanks from the last

Re: [CMS-PIPELINES] punch, rscs, reader and deblock

2021-01-17 Thread Rob van der Heij
But the one who created the “cms blocked” fornat should terminate with x to drop the padding. If you have padding on each card, you need to unravel differently. Rob On Sat, 16 Jan 2021 at 18:13, Alain Benvéniste wrote: > Yes. The fact is that i am in the situation where i don’t have the

Re: [CMS-PIPELINES] punch, rscs, reader and deblock

2021-01-15 Thread Rob van der Heij
On Fri, 15 Jan 2021 at 14:20, Rob van der Heij wrote: > Is there an extra X'03' card in your deck because of RSCS maybe? Get the > full output from READER and study the contents... > The STRFIND would have kept that out, but the recommendation will help you understand where it breaks.

Re: [CMS-PIPELINES] punch, rscs, reader and deblock

2021-01-15 Thread Rob van der Heij
On Fri, 15 Jan 2021 at 14:13, Alain Benveniste wrote: > When I run it on VM1 with a file coming from VM2, I get a FPLDEB072E last > record incomplete. > Am I in a premature end-of-file like the help says ? > Is there an extra X'03' card in your deck because of RSCS maybe? Get the full output

Re: [CMS-PIPELINES] PIPE VMC buffer size

2020-10-25 Thread Rob van der Heij
oogle.com/maps/search/Flight+Forum+3000+5657+EW+Eindhoven?entry=gmail=g> > > -Original Message----- > From: CMSTSO Pipelines Discussion List On > Behalf Of Rob van der Heij > Sent: Saturday, 24 October 2020 11:09 > To: CMS-PIPELINES@VM.MARIST.EDU > Subject: R

Re: [CMS-PIPELINES] PIPE VMC buffer size

2020-10-24 Thread Rob van der Heij
On Sat, 24 Oct 2020 at 03:03, van Sleeuwen, Berry < berry.vansleeu...@atos.net> wrote: > Hi All, > > The PIPE VMC stage apparently has a fixed 8K buffer, though I don’t know > for sure if that limit is in the VMC stage or a limit in the Performance > toolkit. When retrieving data it only returns

Re: [CMS-PIPELINES] Wikipedia and EBCDIC 037-2

2020-09-20 Thread Rob van der Heij
On Mon, 21 Sep 2020 at 00:07, Alan Altmark wrote: > Where I think it suffered the most is the inability to ACCESS a BFS > directory like you access an SFS directory, with all that implies. But > being able to jump into and out of the shell or to use the OPENVM command > mitigates that to an

Re: [CMS-PIPELINES] Replace single record in file

2020-09-12 Thread Rob van der Heij
On Sat, 12 Sep 2020 at 01:18, Stanislawski, Shawn (National VM Capability) < shaw...@dxc.com> wrote: > Would be preferable to avoid truncation of a longer new record when > dealing with recfm=VARIABLE. > But at this point, it sounds as if there is not an elegant resource-light > method for so

Re: [CMS-PIPELINES] Replace single record in file

2020-09-11 Thread Rob van der Heij
On Fri, 11 Sep 2020 at 01:00, Glenn Knickerbocker wrote: > pipe literal 123| specs 1-* v2c 1.3 right | cons > > 1 > > That's just wrong. Yes, the x0001 that goes in is not the "length of the input field" but rather what still fits in the output field after we reserved two bytes for the

Re: [CMS-PIPELINES] Replace single record in file

2020-09-11 Thread Rob van der Heij
On Fri, 11 Sep 2020 at 01:00, Glenn Knickerbocker wrote: > If you want to pad or truncate as needed, probably the simplest way is > to convert V2C and then back C2V. Assuming the input is numbered for > DISKUPDATE: > Good to have another pair of eyes on it. I didn't interpret the question as

Re: [CMS-PIPELINES] Replace single record in file

2020-09-10 Thread Rob van der Heij
On Thu, 10 Sep 2020 at 21:09, Stanislawski, Shawn (National VM Capability) < shaw...@dxc.com> wrote: > Anyone have a great idea on how to use PIPE to replace single record at a > specified record number in a file without having to read / write out the > entire file, with the following caveats? >

Re: [CMS-PIPELINES] PIPE MEMBERS Anomaly ???

2020-09-09 Thread Rob van der Heij
On Wed, 9 Sep 2020 at 11:47, Lionel Dyck wrote: > I'm shocked, shocked I tell you, to learn that PIPES in BPW is out of date. > In comparison with CMS Pipelines on z/VM that is of course... It's a bit like sitting on both hands while coding. I wish I had a better answer. > It's the best I

Re: [CMS-PIPELINES] PIPE MEMBERS Anomaly ???

2020-09-09 Thread Rob van der Heij
On Wed, 9 Sep 2020 at 11:22, Lionel Dyck wrote: > And got this: > BPW00027E Entry point SUBSTR not found > > BPW3I ... Issued from stage 2 of pipeline 1 > > BPW1I ... Running "substr 1:8" > > > Probably an anomaly in z/OS not found in CMS. > Yes, that's BatchPipeWorks, which as you

Re: [CMS-PIPELINES] PIPE MEMBERS Anomaly ???

2020-09-09 Thread Rob van der Heij
On Wed, 9 Sep 2020 at 10:08, Lionel Dyck wrote: > Is there a way with PIPE MEMBERS to have it process all members? > Sure, you're right about the LISTPDS (or LISTISPF) to produce the member names like that. You need to specify the dataset again with the MEMBERS stage (the MEMBERS stage has no

Re: [CMS-PIPELINES] PIPE MEMBERS Anomaly ???

2020-09-09 Thread Rob van der Heij
On Tue, 8 Sep 2020 at 21:17, Lionel Dyck wrote: > Thank you all - RTFM does help doesn't it. I didn't expect it when reading > only a single member however I have coded around it so all is good. > Yes, that's why it says the null record is written after each member, rather than between

Re: [CMS-PIPELINES] Stage for reading/updating CMS NAMES file?

2020-08-21 Thread Rob van der Heij
You're right Mark. That's exactly why I don't want to go there. Clearly there are degrees of freedom that some applications traditionally allow or exploit, likely that other applications don't tolerate. And maybe the period is even optional? While you can probably do something with fs . substr

Re: [CMS-PIPELINES] Stage for reading/updating CMS NAMES file?

2020-08-20 Thread Rob van der Heij
On Thu, 20 Aug 2020 at 19:40, David Boyes wrote: > > To bring this back to CMS Pipelines and my original question, suppose I > had a file containing the following lines: > > :nick.DBOYES :userid.dboyes :node.SNAVM4 :notebook.DBOYES > >:name.David Boyes > > >

Re: [CMS-PIPELINES] Stage for reading/updating CMS NAMES file?

2020-08-20 Thread Rob van der Heij
On Thu, 20 Aug 2020 at 15:47, Rob van der Heij wrote: > > I may have skipped over that in this thread, but what happened to GLOBALV > ? > Serious though... You can use the DIGEST stage to map the path to your variable to a hash, and 64ENCODE that to produce the GLOBALV variable

Re: [CMS-PIPELINES] Stage for reading/updating CMS NAMES file?

2020-08-20 Thread Rob van der Heij
On Thu, 20 Aug 2020 at 15:36, David Boyes wrote: > It's also more logically consistent for the average end user to explicitly > ask for what you want to happen. I keep meaning to port sqlite to CMS, but > ... > I may have skipped over that in this thread, but what happened to GLOBALV ? Rob

Re: [CMS-PIPELINES] Stage for reading/updating CMS NAMES file?

2020-08-18 Thread Rob van der Heij
On Tue, 18 Aug 2020 at 15:16, David Boyes wrote: > It's been used that way forever because that’s what NAMEFIND knew how to > do, GLOBALV had even more restrictions, everybody had it, and everything > else cost real money. The VMLINK and VM TCPIP configuration code are > examples of using it

Re: [CMS-PIPELINES] Stage for reading/updating CMS NAMES file?

2020-08-17 Thread Rob van der Heij
On Mon, 17 Aug 2020 at 22:46, David Boyes wrote: > Was looking through the manual and couldn’t find anything obvious that > could do this. Did I miss something? > > If not, I’d like to suggest a stage or stages that lets you both read and > update a CMS NAMES format file. Most of the uses of

Re: [CMS-PIPELINES] CRC for 10bit words?

2020-06-09 Thread Rob van der Heij
On Tue, 9 Jun 2020 at 18:37, wrote: > The CRC stage could use "canned" CRC algorithms or some custom > defined ones. Is there a trick or any chance at all to define an > algorithm for 10-bit words instead of 16- or 32-bit? > > Ciao.Mike > Not sure, but anything you can do with VCHAR and the

[CMS-PIPELINES] CMS Pipelines SSL Support

2020-06-04 Thread Rob van der Heij
Good news for the plumbers who need to do TCP/IP connections secured with SSL/TLS. We're happy to tell that VM66365 has closed and PTF UM35658 and pre-req PTFs can be ordered for z/VM 7.1 now. The APAR introduces * A new SECURE option on tcpclient and tcpdata to write TCP/IP client and server

Re: [CMS-PIPELINES] stack + stem append

2020-05-20 Thread Rob van der Heij
On Wed, 20 May 2020 at 14:38, Alan Altmark wrote: > Stated more clearly, when APPEND is specified, only the appended elements > of the array are written to the output stream. > A lot of the device drivers copy the input records to the output as a courtesy when the function performed isn't

Re: [CMS-PIPELINES] stack + stem append

2020-05-20 Thread Rob van der Heij
On Wed, 20 May 2020 at 13:55, Alain Benveniste wrote: > "PIPE STACK", > "! STEM TABLE1. APPEND", > "! CONSole" > I think Kris and Berry are taking a detour. What the CONS shows here is the stuff that this pipeline is *appending* to the stack, and that's indeed just the B. And a simple

Re: [CMS-PIPELINES] GETFILES question

2020-05-16 Thread Rob van der Heij
You use a FANOUT on the stream of file names and the FANINANY or JUXTAPOSE to decorate the contents with names. Sir Rob the Plumber On Sat, 16 May 2020 at 12:14, Lionel Dyck wrote: > Is there a way to insert into the data stream a record/delimiter between > files that are processed by

Re: [CMS-PIPELINES] TSO Pipes

2020-04-23 Thread Rob van der Heij
On Thu, 23 Apr 2020 at 15:27, René Jansen wrote: Is there somewhere an instruction on how to install the Princeton Pipelines > distro on z/OS? > No, that hasn't been an option since probably 30 years. The z/OS edition also has parts that are unique to z/OS, and those are not even in the code

Re: [CMS-PIPELINES] TSO Pipes

2020-04-23 Thread Rob van der Heij
On Thu, 23 Apr 2020 at 15:11, René Jansen wrote: > Hi Lionel, > > I would certainly like to vote for this, but I get a > > The change request identifier is invalid. > > message when I try it. Is it the URL or my IBMID? > I could not miss the opportunity to tell people: just query "top voted

Re: [CMS-PIPELINES] Learning Pipes (under TSO) ?

2020-04-18 Thread Rob Van der Heij
Assuming you have TSO Pipelines, otherwise you’d have to find the BatchPipes book Rob van der Heij IBM z/VM Development- CMS Pipelines > On 18 Apr 2020, at 13:50, John P. Hartmann wrote: > > Assuming you know TSO and basic CMS, the CMS library pipelines user's > guide contains the

Re: [CMS-PIPELINES] Updating a field in a STRUCTURE

2020-01-22 Thread Rob van der Heij
On Wed, 22 Jan 2020 at 20:44, David Boyes wrote: > The RCF I was planning to write was a suggestion for heading “Referencing > Fields in a Structure” in chapter 6. An example of updating the value of a > field would be helpful (that’s where reading the current value is > discussed). But it’s

Re: [CMS-PIPELINES] Updating a field in a STRUCTURE

2020-01-22 Thread Rob van der Heij
On Wed, 22 Jan 2020 at 16:22, David Boyes wrote: > I have an application that defines a data structure using the STRUCTURE > stage. I can define the structure and read the values of individual members > without difficulty – there’s a nice example of how to do it in the docs. > What I’m trying to

  1   2   3   4   5   >