Re: DSNAME Syntax

2013-09-30 Thread Bill Godfrey
On Sat, 28 Sep 2013 21:59:32 -0500, Paul Gilmartin paulgboul...@aim.com wrote: (And I still see no good explanation of why data set names beginning with a period are prohibited, at least by JCL.) This is just wild speculation on my part, but maybe IBM is considering a future change to the rule

Re: Embedded two-byte representations of marked alphabetic characters in SBCSs

2013-10-05 Thread Bill Godfrey
On Sat, 5 Oct 2013 15:12:09 -0400, John Gilmore wrote: Consider the botched French-language text A Montréal, a la fin des années 80, . . . It should of course be A Montréal, a la fin des années 80 . . . The difficulty arises when a convention for representing 'é' as two successive byte

Re: TSOLIB BLDL abend

2013-10-09 Thread Bill Godfrey
DE is pointing to the wrong thing. Try DE=NAME instead. Bill On Wed, 9 Oct 2013 18:44:52 -0400, MichealButz wrote: Binyamin The program is a TSO command processor so. using a TSOLIB is analogous to ? I did a TSOLIB ACTIVATE dataset right before running my code under test * BLDL

Re: TSOLIB BLDL abend

2013-10-11 Thread Bill Godfrey
On Fri, 11 Oct 2013 10:28:42 -0400, Peter Relson wrote: RCF submitted. Assuming that you meant z/OS MVS Programming: Assembler Services Reference, Volume 2 (IAR-XCT), the note conflicts with the preceding text, which is correct. Why? Where? The use of that book name indicates perhaps that you

Re: 0C4 reason code 4 TSO command processor returning from verify exit

2013-10-15 Thread Bill Godfrey
Check for possible USINGs that may have carried over from earlier in the program, for the instructions that refer to NAME, LIST_ADDR, and MOVE_PROG. Were the instructions that refer to those names generated with the correct base register? Also, if the instruction at MOVE_PROG itself depends on

Re: 0C4 reason code 4 TSO command processor returning from verify exit

2013-10-16 Thread Bill Godfrey
In this case the OP says he is using CALLTSSR EP=IKJPARS, which does not issue a LINK if the entry point is in CVTPARS, but uses BALR (CALL) instead. Bill On Wed, 16 Oct 2013 09:40:16 -0700, Jon Perryman wrote: There are situations where LPA module names are not displayed but that is usually

Re: Getting the SMF time

2013-10-25 Thread Bill Godfrey
On Fri, 25 Oct 2013 08:50:53 -0500, Donald Likens wrote: I already convert the SMF time into human time by using arithmetic but I am having a problem with the calculation and I am attempting to use the ASM macros to convert the time. Here is what I am doing: * CREATE TODDATE

Re: Aging Sysprogs = Aging Farmers

2013-11-06 Thread Bill Godfrey
In case this is causing confusion to some readers, the Session Manager that includes the SMCOPY command, which was mentioned earlier, has nothing to do with multiple sessions. There is a chapter about it in the TSO/E User's Guide.

Re: Extents limit for HFS

2013-11-22 Thread Bill Godfrey
This excerpt from an 8-31-2010 post by Alan Starr, in reply to a question from R.S. who also started the current thread: (begin quote) I believe that the answers to your questions may be found in the Data Extent Block (DEB) and the murky depths of history. Due to its age, its close connections

Re: XMITMGR

2014-01-27 Thread Bill Godfrey
On Sun, 26 Jan 2014 14:03:37 -0700, Steve Comstock wrote: Replying to my own post (and top-posting at that): found the problem. Needed to install 64-bit java. Done. Works. -Steve There's another program for XMI files here: http://xiframe.com/index.php?page=xixmiexplorer and a User Guide PDF

Re: XMITMGR

2014-02-03 Thread Bill Godfrey
On Sun, 2 Feb 2014 21:42:54 +, Robert Prins wrote: On 2014-02-02 18:10, nic...@rnes.org wrote: On Monday, January 27, 2014 3:37:46 PM UTC-5, Bill Godfrey wrote: There's another program for XMI files here: http://xiframe.com/index.php?page=xixmiexplorer and a User Guide PDF file under

Re: XMI Explorer (was: XMITMGR)

2014-02-05 Thread Bill Godfrey
On Mon, 3 Feb 2014 10:55:53 -0600, Bill Godfrey yak36...@yahoo.com wrote: On Sun, 2 Feb 2014 21:42:54 +, Robert Prins wrote: On 2014-02-02 18:10, nic...@rnes.org wrote: On Monday, January 27, 2014 3:37:46 PM UTC-5, Bill Godfrey wrote: There's another program for XMI files here: http

Re: SMF record 62 and SMF62MC1 byte meaning.

2014-02-14 Thread Bill Godfrey
On Thu, 13 Feb 2014 10:55:27 +0100, Massimo Biancucci wrote: Hi all, we started analyzing SMF62 to trace which A.S. use VSAM datasets and their intent (Read or Update). To do the task we analyze the SMF62MC1 flag (zOS 1.13). So, a Cobol program does the following: .. SELECT

Re: SMF record 62 and SMF62MC1 byte meaning.

2014-02-14 Thread Bill Godfrey
On Fri, 14 Feb 2014 07:39:24 -0500, John Gilmore wrote: Is this [SMF record] flags byte recording behavior? Or is it recording [only] open option(s) specified? If the latter, should not opening for update set both the IN and the OUT bits? How otherwise is the specification of update reflected

Re: SMF record 62 and SMF62MC1 byte meaning.

2014-02-14 Thread Bill Godfrey
On Fri, 14 Feb 2014 09:43:28 -0500, John Gilmore jwgli...@gmail.com wrote: Bill, I value your contributions here. They are always appropriately informed, as was your last post in this thread. That said, it seems clear to me beyond argument that the appropriate way to record an open-for-update

Re: SMF record 62 and SMF62MC1 byte meaning.

2014-02-14 Thread Bill Godfrey
On Fri, 14 Feb 2014 14:33:03 -0500, John Gilmore jwgli...@gmail.com wrote: Bill, The 'compatibility problem' you mention is not obvious to me. Currently--I have tested all of the permutations---either the IN bit is set or the OUT bit is set. Both are never set. My view is, yes, that both the

Re: SMF record 62 and SMF62MC1 byte meaning.

2014-02-14 Thread Bill Godfrey
On Fri, 14 Feb 2014 22:36:37 -0500, John Gilmore wrote: Does this existing code do updates only after checking to ensure that the In bit is not set (off)? I doubt that. Compatibility arguments are certainly not dismissible; some, even many, of them are substantive; but they are too often

Re: Duplicate Batch Job

2013-05-08 Thread Bill Godfrey
Back before OCO, SUBMIT issued SVC 100 (called FIB, for foreground initiated background) and most of the code ran within that SVC. It probably still does. I think the SVC was/is also used by STATUS, CANCEL, and OUTPUT to access the JES subsystem interface. Bill On Wed, 8 May 2013 09:54:27

Re: C question -- not sure where to ask it

2013-05-10 Thread Bill Godfrey
On Fri, 10 May 2013 13:04:12 -0700, Scott Ford wrote: All: I am writing a routing and want to use type=memory files in C and this is what i tried... These 3 lines: memset(buffout,'',sizeof(buffout)); strcpy(buffout,\n); fwrite(buffout,1,80,fobj); will write \n followed by 79

Re: C question -- not sure where to ask it

2013-05-11 Thread Bill Godfrey
On Sat, 11 May 2013 12:25:13 -0700, retired mainframer wrote: What is the character between the two single quote marks in the first call to memset? My email shows no character (the quotes are adjacent) and C does not support an empty character constant. Perchance did you have a hex 00 there?

Re: Rather interesting article on hacking the mainframe using ftp

2013-05-19 Thread Bill Godfrey
In the Python script that a link in that site points to, I see that one line, 525, is over 202000 bytes long, assigning a string literal about that long to a variable. I couldn't help but reflect that some text editors and viewers would have trouble with that line. Python does allow string

Re: Lookup Mainframe Software

2013-05-21 Thread Bill Godfrey
On Tue, 21 May 2013 08:24:41 -0400, Charles Mills charl...@mcn.org wrote: Good stuff. Thanks, David. Also, thanks for your STCK(E) converter. http://www.longpelaexpertise.com.au/toolsTOD.php Have used that from time to time. Charles The STCK converter is not handling leap seconds. If you

Re: Lookup Mainframe Software

2013-05-21 Thread Bill Godfrey
On Tue, 21 May 2013 10:41:39 -0500, Paul Gilmartin wrote: On Tue, 21 May 2013 10:06:12 -0500, Bill Godfrey wrote: On Tue, 21 May 2013 08:24:41 -0400, Charles Mills wrote: Also, thanks for your STCK(E) converter. http://www.longpelaexpertise.com.au/toolsTOD.php Have used that from time to time

Re: TRSMAIN or AMATERSE on z/VSE

2013-05-22 Thread Bill Godfrey
On Wed, 22 May 2013 08:00:45 -0700, Richard Pinion wrote: I've searched using Google but haven't come up with a definitive answer. Is there an AMATERSE/TRSMAIN compatible utility on the z/VSE operating system? There was a TERSE program for VSE/ESA. I don't know about z/VSE. If you go to the

Re: Examples of getbuf and build usage

2013-06-01 Thread Bill Godfrey
On Thu, 30 May 2013 19:12:54 -0400, Micheal Butz wrote: Would anyone have examples of Getbuf used with BSAM read I think it might help my problem Are your buffer addresses above the line? If so, they shouldn't be. GETBUF gets a 24-bit BUFCB address from the DCB using ICM 14,7,21(1). Bill

Re: Examples of getbuf and build usage

2013-06-02 Thread Bill Godfrey
NO,RETURN ZERO + MVC 0(4,14),0(R2) Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Godfrey Sent: Saturday, June 01, 2013 9:30 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Examples of getbuf

Re: Examples of getbuf and build usage

2013-06-02 Thread Bill Godfrey
On Sat, 1 Jun 2013 08:30:15 -0500, Bill Godfrey yak36...@yahoo.com wrote: On Thu, 30 May 2013 19:12:54 -0400, Micheal Butz wrote: Would anyone have examples of Getbuf used with BSAM read I think it might help my problem Are your buffer addresses above the line? If so, they shouldn't be. GETBUF

Re: Examples of getbuf and build usage

2013-06-02 Thread Bill Godfrey
it with buffers above the line, so this is not a theoretical conjecture. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Godfrey Sent: Sunday, June 02, 2013 6:42 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Examples of getbuf

Re: Examples of getbuf and build usage

2013-06-03 Thread Bill Godfrey
confused? Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Godfrey Sent: Monday, June 03, 2013 12:11 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Examples of getbuf and build usage It can be done that way, you are right, but I

Re: Is there a reverse bits hardware instruction?

2013-07-24 Thread Bill Godfrey
On Wed, 24 Jul 2013 12:54:06 -0500, Kenneth Wilkerson wrote: The macro at the end of my reply will generate a reverse translate table. (snip) MACRO LABEL REVTABLE , * Construct reverse bits translate table (snip) That's a beauty. Bill

Re: C question (IBM specific)

2013-08-30 Thread Bill Godfrey
On Fri, 30 Aug 2013 09:15:28 -0500, Mark Hammack wrote: I would like to be able to pass a string to the IBM C/C++ compiler to include in a program. I have tried every way I can think of to use the DEFINE() compiler option but can't make it work. This is what I would like to do: ... // EXEC

Re: timezone_name?

2013-09-06 Thread Bill Godfrey
On Thu, 5 Sep 2013 16:13:07 -0700, Charles Mills wrote: I'm looking at my C++ code. I wrote it, but I wrote it before I understood as much (?) as I do now, and before GSK surprised me and made me run POSIX(ON). Background: the code runs on many different systems and customers set their machines

Re: Below the Line Storage Allocation

2014-02-21 Thread Bill Godfrey
The private area size can be displayed by this TSO TEST command: L 224.%+30?+40 7FF16E50. 007FA000 The result, hex 007FA000, varies of course from system to system. This is the same field, LDASIZA, shown by the IPLINFO exec. I assembled variations of a 24-bit program with different sizes and

Re: Convert Tcp/IP translate tables from binary to source

2014-02-24 Thread Bill Godfrey
On Mon, 24 Feb 2014 09:06:11 +0200, Gadi wrote: Hi, I need to convert a customized binary version of a TCP/IP translation table to the source version. Is there a way to do this? I know that the CONVXLAT program will do the reverse. Thanks Gadi If it is an SBCS table named

Re: Convert Tcp/IP translate tables from binary to source

2014-02-24 Thread Bill Godfrey
[mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Godfrey Sent: Monday, February 24, 2014 12:26 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Convert Tcp/IP translate tables from binary to source On Mon, 24 Feb 2014 09:06:11 +0200, Gadi wrote: Hi, I need to convert a customized binary

Re: Convert Tcp/IP translate tables from binary to source

2014-02-24 Thread Bill Godfrey
and then between each pair of hex characters The first line looks like this: e00e01e02e03e37e2De2Ee2Fe16e05e25e0Be0Ce0De0Ee0F Gadi -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Godfrey Sent: Monday, February 24, 2014 3

Re: AUTO: Umberto Silvestri is prepared for DELETION (FREEZE)

2014-03-12 Thread Bill Godfrey
On Wed, 12 Mar 2014 18:15:22 -0400, Shmuel Metz (Seymour J.) wrote: In W3765710203175481394637678@atl4webmail26, on 03/12/2014 at 03:21 PM, Lance D. Jackson said: Hey, can you please turn this OFF!1 There's no point in asking on the list: ask

old RJE 360 workstation mod - reflexivity

2014-03-24 Thread Bill Godfrey
The current thread about reflexivity reminds me of an old program we tested in the mid-70's, before NJE, that was called the Iowa Workstation. It was a modification from the University of Iowa of the HRTPB360 program that came with JES2, that allowed it to run as a task on MVS instead of on an

Re: STOW member list format?

2014-03-25 Thread Bill Godfrey
The PDF file for that same V2R1 manual has more information than the original link, but not a mapping macro. See the 380th page (which has page number 354). http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/download/DGT3D500.pdf Or if the V1R13 manual will do, here is a link to the

Re: STOW member list format?

2014-03-25 Thread Bill Godfrey
On Tue, 25 Mar 2014 18:49:04 -0500, Paul Gilmartin wrote: On Tue, 25 Mar 2014 16:28:00 -0700, retired mainframer wrote: That url points to SC23-6852-00. There is a -01 online but it doesn't have Hmmm ... Is there a simple technique for accessing the latest revision of docs for a given OS

Re: STOW member list format?

2014-03-26 Thread Bill Godfrey
On Wed, 26 Mar 2014 11:42:42 -0500, Paul Gilmartin wrote: On Tue, 25 Mar 2014 19:02:04 -0500, Bill Godfrey wrote: You did see that it is in the Z/OS 2.1 PDF that I mentioned, right? 380th page, page 354. http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/download/DGT3D500.pdf I found

Re: Sorting CSV data that begins with an IP address

2014-04-16 Thread Bill Godfrey
On Wed, 16 Apr 2014 09:01:28 +, Sankaranarayanan, Vignesh wrote: Hello, I need help sorting some 5000 lines based on the first entry in a CSV - IP address. When sorting, I need the whole record to be involved in the sort, not just the IP's. Sample data:

Re: EBCDIC viewer for Windows

2014-06-23 Thread Bill Godfrey
On Sun, 22 Jun 2014 07:49:40 +, Linda Mooney linda.lst...@comcast.net wrote: Greetings! I am looking for an EBCDIC viewer for Windows, to view flat datasets that were created on the mainframe. Edit is not necessary for what I need. Can anyone recommend one for me? Originally, I was

Re: Local Time conversion to/from UTC Time

2014-06-28 Thread Bill Godfrey
On Fri, 27 Jun 2014 15:28:41 -0700, Hardee, Chuck wrote: I am in the process of writing a program that is reading several files. Some of the files have dates in local and some have dates in UTC. I want to be able to move between the two time bases as needed. I don't envision the program reading

Re: AW: Re: Authorizing 8 char technical userid to use TSO CONSOLE command

2014-07-10 Thread Bill Godfrey
On Thu, 10 Jul 2014 21:16:14 +0200, Peter Hunkeler wrote: Let me try to conclude this thread as it has drifted apart from the original question to the question whether an 8 char (MVS) userid can become valid TSO user (which it *cannot*). My interest was to find out why some TSO commands can be

Re: AW: Re: OPEN not filling in DCBBLKSI for RECFM=U data set

2014-07-18 Thread Bill Godfrey
On Fri, 18 Jul 2014 07:40:46 +0200, Peter Hunkeler wrote: RECFM=U stands for undefined. As someone else already pointed out, every block can be of different length, no matter what block size is set. The block size field in the DCB is used to communicate the current block's length between the

Re: AW: Re: OPEN not filling in DCBBLKSI for RECFM=U data set

2014-07-18 Thread Bill Godfrey
On Fri, 18 Jul 2014 09:21:15 -0400, David Andrews wrote: On Fri, 2014-07-18 at 07:38 -0500, Bill Godfrey wrote: The block size field is not set to the current block's length for BSAM READ either. For BSAM READ, the length is determined after a CHECK or WAIT by subtracting the residual count

Re: How to load logical load x'ac'

2012-12-09 Thread Bill Godfrey
Rather than trying to get x'ac' to work for other people, why not leave the circumflex unchanged? Then other people would not have to try to get it to work. Their FTP will most likely convert the ASCII circumflex to EBCDIC x'5F', which is what the mainframe C compiler accepts as the

Re: I do not understand S0C6 on CDSG

2013-02-26 Thread Bill Godfrey
On Mon, 25 Feb 2013 12:09:24 -0600, Paul Gilmartin paulgboul...@aim.com wrote: On Mon, 25 Feb 2013 11:49:59 -0600, John McKown wrote: Depends on the contents of register 11. B040 will be quad word aligned only if register 11 is itself quad word aligned. If you got this from a STORAGE OBTAIN or

Re: I do not understand S0C6 on CDSG

2013-02-26 Thread Bill Godfrey
On Tue, 26 Feb 2013 13:02:22 -0600, Tom Marchant m42tom-ibmm...@yahoo.com wrote: On Tue, 26 Feb 2013 12:46:13 -0600, Bill Godfrey wrote: N R15,=A(X'FFF0') This is a case where my preference would be to use a newer instruction. NILL R15,X'FFF0' It is part

Re: SAVE macro

2013-02-27 Thread Bill Godfrey
When the SAVE macro splits the string into 8-byte pieces, it does not handle the presence of double apostrophes or double ampersands correctly. It counts them as 2 characters when determining the total length, and if they happen to occur straddling an 8-byte boundary, it splits them between two

Re: FTP translation woes

2013-03-02 Thread Bill Godfrey
On Fri, 1 Mar 2013 14:36:57 -0600, Paul Gilmartin wrote: On Fri, 1 Mar 2013 13:15:29 -0600, John McKown wrote: The translation set up with the site command is for both the PUT and GET commands. At the time of issuance, the ftp process does not know which you will do. So every IBM-1047 code point

Re: BLDL+FIND or just FIND+DCB for reading a single member of a PDS

2013-03-25 Thread Bill Godfrey
On Mon, 25 Mar 2013 09:46:56 -0400, Thomas David Rivers wrote: I'm reworking some code to avoid multiple OPENs for reading PDS members.. But, I will still be just reading one member at a time, and I don't know the member names a-priori. The DFSMS documentation states that using BLDL + FIND (and

Re: BLDL+FIND or just FIND+DCB for reading a single member of a PDS

2013-03-25 Thread Bill Godfrey
On Mon, 25 Mar 2013 12:28:00 -0400, Thomas David Rivers wrote: Bill Godfrey wrote: On Mon, 25 Mar 2013 09:46:56 -0400, Thomas David Rivers wrote: I'm reworking some code to avoid multiple OPENs for reading PDS members.. But, I will still be just reading one member at a time, and I don't know

Re: C and Assembler

2013-04-05 Thread Bill Godfrey
Also, it would be much less dangerous if the results were stored in the caller's arguments AFTER the MODESET KEY=NZERO. You would have to save R1 and R15 in other registers before the MODESET, perhaps R0 and R9. Bill On Fri, 5 Apr 2013 17:27:18 -0400, Thomas H Puddicombe wrote: Should R5 be

Re: Converting STCK(tod) to readable format

2013-04-20 Thread Bill Godfrey
On Sat, 20 Apr 2013 14:39:08 -0400, Peter Relson wrote: I find George Kozakos's answer more satisfactory than yours. You might have found George's response more satisfactory, but it was incorrect in a subtle way. George wrote It's neither. It's the STCK time where UTC = STCK - CVTLSO LOCAL =

Re: Convert to base64 help

2014-08-08 Thread Bill Godfrey
On Fri, 8 Aug 2014 01:56:17 +, Ward, Mike S wrote: Hello all, I have found two assembler programs that are supposed to convert data to base64. They do not seem to be working correctly. I have gone to two sites on the internet that do online base64 conversions. I place a 32 byte string of

Re: Convert to base64 help

2014-08-08 Thread Bill Godfrey
On Fri, 8 Aug 2014 09:37:21 -0500, Paul Gilmartin wrote: On Fri, 8 Aug 2014 09:14:33 -0500, Bill Godfrey wrote: ... OMVS ... To many assembler programmers, that's a four-letter word. I use printf instead of echo because echo appends a newline which will also be converted to base64. printf

Re: Convert to base64 help

2014-08-08 Thread Bill Godfrey
On Fri, 8 Aug 2014 15:35:44 -0500, Paul Gilmartin paulgboul...@aim.com wrote: On Fri, 8 Aug 2014 09:14:33 -0500, Bill Godfrey wrote: Under OMVS on z/OS you can convert data to base64 with the uuencode -m command. ... This appears to be POSIX, so should be available on most systems. (But I

Re: Convert to base64 help

2014-08-08 Thread Bill Godfrey
On Sat, 9 Aug 2014 00:46:40 +, Pew, Curtis G wrote: On Aug 8, 2014, at 3:35 PM, Paul Gilmartin 000433f07816-dmarc-requ...@listserv.ua.edu wrote: tail +2 (not +1!? Fencepost error.) strips off the first line. Is there a utility to strip the last line? There seems to be no

Re: Convert to base64 help

2014-08-08 Thread Bill Godfrey
On Fri, 8 Aug 2014 15:35:44 -0500, Paul Gilmartin wrote: On Fri, 8 Aug 2014 09:14:33 -0500, Bill Godfrey wrote: Under OMVS on z/OS you can convert data to base64 with the uuencode -m command. ... This appears to be POSIX, so should be available on most systems. (But I needed to install

Re: another question about TSO edit command

2014-08-09 Thread Bill Godfrey
On Sat, 9 Aug 2014 16:22:11 -0500, Paul Gilmartin wrote: On Sat, 9 Aug 2014 14:11:55 -0700, Jon Perryman wrote: What makes a fullscreen editor not a line mode editor? I can't think of any ISPF edit commands that require full screen features other than entering the command thru the command area

Re: Understanding Data Set Information?

2014-08-29 Thread Bill Godfrey
On Fri, 29 Aug 2014 22:18:46 -0500, Bill Godfrey bgodfrey...@gmail.com wrote: On Fri, 29 Aug 2014 17:47:03 -0500, Paul Gilmartin wrote: My command was (after deleting the output data set): _UNIX03=NO cp -B -P'SPACE=(1,(0,300)),BLKSIZE=0' /dev/fd/0 //TEMP.CBT854.ZIP ISPF DSLIST

Re: IBM C compiler substituting for macros inside literals?

2014-09-01 Thread Bill Godfrey
On Mon, 1 Sep 2014 16:26:34 -0700, Charles Mills wrote: Sorry. cc command. cc -E StringMacroTest.c Interesting! Happens with cc command but not with c89 or c++ commands. The cc command is not ANSI C. xlc, c89, and c99 are ANSI C. See this page from chapter 24 of the C/C++ User's Guide for

Re: IBM C compiler substituting for macros inside literals?

2014-09-02 Thread Bill Godfrey
On Tue, 2 Sep 2014 08:31:50 +0100, Andy Taylor wrote: Charles Yes, I assumed this and used the macro invocation in my test compile. And for completeness, I can confirm that when I use cc -E on my 1.12 system I get the same results as you i.e.: printf(%fox %s %s %s %s\n, 5, The, quick, brown,

Re: FTP of EBCDIC file

2014-09-08 Thread Bill Godfrey
On Mon, 8 Sep 2014 09:08:47 -0500, John McKown john.archie.mck...@gmail.com wrote: Possible REXX program: /* rexx */ data='' CRLF='0D25'X do forever execio 1 diskr sysut1 if rc 0 then leave parse pull record data=data||record i=pos(CRLF,data) do while i 0;

Re: FTP of EBCDIC file

2014-09-08 Thread Bill Godfrey
On Mon, 8 Sep 2014 14:31:05 -0500, John McKown john.archie.mck...@gmail.com wrote: Sure that can happen. No, it is not a problem. Why? Because if the variable data ends with a x'0d', the code will NOT split it. If will be in the left over portion of data. And the line: data=data||record will put

Re: FTP Question

2014-09-23 Thread Bill Godfrey
On Tue, 23 Sep 2014 07:16:39 -0500, Paul Gilmartin paulgboul...@aim.com wrote: On Mon, 22 Sep 2014 12:01:48 -0400, Mark Jacobs wrote: One of my users is trying to send a mainframe file to another sever, converting it to UTF-8 with Byte Order Mark(BOM). So far he hasn't been able to get it to

Re: Incomplete last line (was: FTP Question)

2014-09-23 Thread Bill Godfrey
On Tue, 23 Sep 2014 15:03:21 -0500, Paul Gilmartin paulgboul...@aim.com wrote: On Tue, 23 Sep 2014 09:23:54 -0500, Bill Godfrey wrote: I have seen the very misleading 451 message when attempting this with a USS file in which the last line does not end with hex 15. If that is the case with your

Re: FTP Question

2014-09-24 Thread Bill Godfrey
was UTF-8. But Bill Godfrey had the correct explanation Curiouser and curiouser. RFC 959 does not define 557, nor does it require an end-of-line sequence for data in stream mode. On the off chance that this is worth trying to unravel, here is an excerpt from Paul's post: (begin quote) ftp quote

Re: Fwd: Re: Doug Nadel snippet

2014-11-12 Thread Bill Godfrey
On Mon, 10 Nov 2014 21:51:56 +0800, David Crayford dcrayf...@gmail.com wrote: Finding words in strings should be a piece of cake for regex enthusiasts especially those that understand POSIX syntax. I'm sure there are better experts than me wrt regex syntax on these boards and I bow down to them.

Re: Binder SYSPRINT wrap?

2014-11-21 Thread Bill Godfrey
On Fri, 21 Nov 2014 13:51:14 -0800, Charles Mills wrote: For the record let me say I was not dinging the OP for being a nitpicker. No such implication was intended. It just seemed that the question itself was unanswerable. I have a friend who used to be the systems programming manager for a

Re: ancient cobol applications

2015-02-07 Thread Bill Godfrey
http://www.king5.com/story/news/local/2015/02/06/old-computers-state-government-agencies/22953063/ On Sat, 7 Feb 2015 19:50:10 -0500, scott wrote: Which state agencies? Some out of work programmers would probably love to do some meaningful work. On 02/07/2015 01:01 PM, Anne Lynn Wheeler

Re: FB to VB PDS

2015-02-14 Thread Bill Godfrey
The IEBUPDTE step in your JCL doesn't do what you think it does. Although the step ends with return code 0, the resulting PDS is RECFM=F LRECL=80 BLKSIZE=80. Bill On Fri, 13 Feb 2015 09:59:03 -0800, Sri h Kolusu wrote: It certainly can be done. We did not hear anything from OP and hence did

Re: FTP conversion Extended ASCII to EBCDIC

2015-03-06 Thread Bill Godfrey
On Thu, 5 Mar 2015 17:51:28 -0600, Bill Godfrey bgodfrey...@gmail.com wrote: On Thu, 5 Mar 2015 17:21:01 -0600, Bill Godfrey wrote: On Thu, 5 Mar 2015 18:15:07 +, David Booher wrote: I have noticed when you are transferring a windows file containing a not character (x'AC') using ASCII

Re: FTP conversion Extended ASCII to EBCDIC

2015-03-05 Thread Bill Godfrey
On Thu, 5 Mar 2015 18:15:07 +, David Booher wrote: I have noticed when you are transferring a windows file containing a not character (x'AC') using ASCII transfer to the mainframe, it gets converted to backslash ( \ x'B7') when stored. Is there any way to get the extended Windows ASCII

Re: FTP conversion Extended ASCII to EBCDIC

2015-03-05 Thread Bill Godfrey
On Thu, 5 Mar 2015 17:21:01 -0600, Bill Godfrey wrote: On Thu, 5 Mar 2015 18:15:07 +, David Booher wrote: I have noticed when you are transferring a windows file containing a not character (x'AC') using ASCII transfer to the mainframe, it gets converted to backslash ( \ x'B7') when stored

Re: CR on records using OCOPY converting from ASCII to EBCDIC

2015-03-19 Thread Bill Godfrey
On Thu, 19 Mar 2015 09:44:56 -0500, Kevin Landin wrote: We FTP a zip file from a vendor as binary to a z/OS Unix file. We then expand the zip file using the JAR command: jar xf input.zip Since the members were zipped as ASCII, the unzipped members in the z/OS Unix file are also ASCII.

Re: Where can a running TSO program get its terminal name

2015-05-12 Thread Bill Godfrey
Also the GTTERM macro. http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4B790/7.4 Bill On Tue, 12 May 2015 11:29:55 -0700, Charles Mills charl...@mcn.org wrote: Great! Thanks. (Also Thanks, Tony.) Charles -Original Message- From: IBM Mainframe Discussion List

old LISTUTIL program

2015-04-17 Thread Bill Godfrey
I'm looking for an old IBM Type III or IV program for OS/360 named LISTUTIL, which is described in a bitsavers.org copy of the 1971 manual Catalog of Programs for IBM System 360. The Type III and IV programs are described as for unrestricted distribution. Basically LISTUTIL printed a data set,

Re: old LISTUTIL program

2015-04-17 Thread Bill Godfrey
On Fri, 17 Apr 2015 14:49:14 -0400, Tony Harminc t...@harminc.net wrote: On 17 April 2015 at 12:49, Bill Godfrey bgodfrey...@gmail.com wrote: I'm looking for an old IBM Type III or IV program for OS/360 named LISTUTIL, which is described in a bitsavers.org copy of the 1971 manual Catalog

Re: New Line vs. Line Feed

2015-06-04 Thread Bill Godfrey
On Thu, 4 Jun 2015 19:19:56 -0500, Bill Godfrey wrote: On Thu, 4 Jun 2015 11:05:15 -0400, Shmuel Metz (Seymour J.) wrote: In 4767436570688083.wa.bgodfrey.gzgmail@listserv.ua.edu, on 06/01/2015 at 10:18 PM, Bill Godfrey said: The grep and awk commands don't match \n to end-of-line on omvs

Re: New Line vs. Line Feed

2015-06-04 Thread Bill Godfrey
On Thu, 4 Jun 2015 11:05:15 -0400, Shmuel Metz (Seymour J.) wrote: In 4767436570688083.wa.bgodfrey.gzgmail@listserv.ua.edu, on 06/01/2015 at 10:18 PM, Bill Godfrey said: The grep and awk commands don't match \n to end-of-line on omvs, or on linux for that matter. Don't they match \n

Re: DFSORT - How to select last 8 bytes in variable length records

2015-06-07 Thread Bill Godfrey
On Sun, 7 Jun 2015 13:36:53 -0400, Robert A. Rosenberg wrote: At 09:46 -0500 on 06/07/2015, Paul Gilmartin wrote about Re: DFSORT - How to select last 8 bytes in variable length : On Sun, 7 Jun 2015 22:28:01 +0900, Minoru Massaki wrote: Hello There is a input file of variable length records. I

Re: DFSORT - How to select last 8 bytes in variable length records

2015-06-08 Thread Bill Godfrey
On Mon, 8 Jun 2015 00:12:18 -0500, Shane Ginnane wrote: On Sun, 7 Jun 2015 14:11:30 -0500, Bill Godfrey wrote: That would mean there could be end-of-line characters and hex 00 characters in a record, which would mean sed would not work. sed won't (shouldn't) care about the nulls, but won't

Re: New Line vs. Line Feed

2015-05-29 Thread Bill Godfrey
On Fri, 29 May 2015 09:56:20 -0500, Paul Gilmartin paulgboul...@aim.com wrote: On Fri, 29 May 2015 09:52:42 -0500, Bill Godfrey wrote: On Fri, 29 May 2015 09:03:59 -0500, Ze'ev Atlas wrote: But when we issue a pattern matching (I'll use Perl syntax for brevity) if ($text =~ /some text \n

Re: New Line vs. Line Feed

2015-05-29 Thread Bill Godfrey
On Fri, 29 May 2015 09:03:59 -0500, Ze'ev Atlas wrote: But when we issue a pattern matching (I'll use Perl syntax for brevity) if ($text =~ /some text \n/) the \n is translated by convention to LF and the EBCDIC based pattern matching will fail to match! why not this? if ($text =~ /some text

Re: New Line vs. Line Feed

2015-06-02 Thread Bill Godfrey
On Tue, 2 Jun 2015 03:17:35 -0500, Paul Gilmartin wrote: On Mon, 1 Jun 2015 22:18:20 -0500, Bill Godfrey wrote: The grep and awk commands don't match \n to end-of-line on omvs, or on linux for that matter. awk certainly does. To wit: user@OS/390.24.00: cat awknl

Re: New Line vs. Line Feed

2015-06-01 Thread Bill Godfrey
On Mon, 1 Jun 2015 17:11:54 -0400, Shmuel Metz (Seymour J.) shmuel+ibm-m...@patriot.net wrote: In 0379604180364016.wa.bgodfrey.gzgmail@listserv.ua.edu, on 05/29/2015 at 10:30 AM, Bill Godfrey bgodfrey...@gmail.com said: I get identical results whether I use \n or $ in the OP's example

Re: Where can a running TSO program get its terminal name

2015-05-23 Thread Bill Godfrey
I doubt that a relative branch will help. Register 1 is expected to contain an address below the line. It works in RMODE 31, but only if MF=(E,address) is specified on GTTERM and the specified address is below the line. The macro expansion will just point register 1 to the specified address,

Re: Where can a running TSO program get its terminal name

2015-05-23 Thread Bill Godfrey
specific address off of the CSECT base register. No MF= anywhere in the picture. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Godfrey Sent: Saturday, May 23, 2015 9:46 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Where

Re: Redirect or hide IEBCOPY output when using the TSO RECEIVE Command

2015-10-24 Thread Bill Godfrey
In the context of the RECEIVE command, SYSOUT(*) means the terminal, and has nothing to do with MSGCLASS. See this page of the TSO/E Command Reference: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4C5C0/1.38.5 "If * is specified, these messages are directed to the terminal."

Re: BPXWUNIX and sort

2015-11-06 Thread Bill Godfrey
On Thu, 5 Nov 2015 23:13:34 -0500, John P. Baker wrote: >Kirk, > >The following example illustrates what I am trying to do -- > >Call BPXWUNIX "sort -k 3 -k 4 -k 1 -k 2", table_in., table_out., messages_out. >; > >In the above example, "table_in." in a stem variable containing the rows to be

Re: How the determine dataset is PDSE

2015-10-05 Thread Bill Godfrey
On Mon, 5 Oct 2015 17:44:30 +, Savor, Thomas (Norcross) wrote: > I have a bunch of PDS utility batch programs that have worked fine for PDS. > But for PDSe not so much. > On a PDS...reading the directory...a use MACRF=R,RECFM=Uworks great. > On a PDSE...reading the directoryit looks

Re: Source for "98% of the checking transactions flow through a mainframe" type statements

2015-09-02 Thread Bill Godfrey
On Wed, 2 Sep 2015 22:58:31 -0500, Bill Godfrey wrote: >On Wed, 2 Sep 2015 17:29:54 -0700, Charles Mills wrote: > >>I have seen an IBM SHARE keynote or the like where IBM rolled out a bunch of >>statements like >> >>98% of the checking transactions pass through a

Re: Source for "98% of the checking transactions flow through a mainframe" type statements

2015-09-02 Thread Bill Godfrey
On Wed, 2 Sep 2015 17:29:54 -0700, Charles Mills wrote: >I have seen an IBM SHARE keynote or the like where IBM rolled out a bunch of >statements like > >98% of the checking transactions pass through a mainframe >72% of the credit card transactions involve a mainframe >etc. > >I would like to use

Re: Can we use different translation tables via FTP

2015-09-02 Thread Bill Godfrey
On Tue, 1 Sep 2015 17:00:27 -0500, Jasi Grewal wrote: >Greetings, I am trying to use different translation table and it states that >is not supported or not loaded. >I have tried to define XLATE and SBDATACONN to TCPIP.STANDARD.TCPXLBIN in >ftp.data but still gets the following message: > >help

Re: z/OS V2.2 Manuals are zipped up

2015-09-17 Thread Bill Godfrey
On Thu, 17 Sep 2015 07:08:28 -0700, Lizette Koehler wrote: >I was not sure if anyone posted this or saw this. So here it is as posted on >share.org on Sept 16th 2015. > > >z/OS V2.2 PDFs are available zipped up > >Marna Walle > >Although today the z/OS V2.2 publications are not available on

Re: Unicode services Red alert

2015-10-02 Thread Bill Godfrey
On Thu, 1 Oct 2015 11:41:38 -0700, Charles Mills wrote: >The error I am hoping for is #define CUN_RS_NO_SERV_AVAILABLE 11 /* >Service not available */ but it looks like there is no clue here that >that is it. > The "RSNB" in the APAR description means the reason code is 11. Bill

Re: z/OS V2.2 Manuals are zipped up

2015-09-18 Thread Bill Godfrey
There is another way to get to the index. Instead of clicking on the .pdx file, open any document in the directory that has the .pdx file. Click on "Edit" then "Advanced Search". Click on "Show More Options". In the menu under "Look in:" click on "Select Index..." The .pdx file will be the only

  1   2   >