Re: COBOL "problem" (not really), but sort of.

2013-09-30 Thread Elardus Engelbrecht
Michael G Phillips wrote: >> Thanks. I'll point him to it. He has already, somewhat jokingly, said "fix >> it!" But COBOL doesn't have the DWIW (Do What I Want) verb. > I'm still waiting for the DWIT (Do What I'm Thinking) and RAE (Remove All > Errors) instructions... ;-) Add this action: WF

Re: COBOL "problem" (not really), but sort of.

2013-09-30 Thread Thomas Berg
> -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Michael G Phillips > Sent: Saturday, September 28, 2013 8:32 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: COBOL "problem" (not really), but sort of. &

Re: COBOL "problem" (not really), but sort of.

2013-09-27 Thread Michael G Phillips
> Thanks. I'll point him to it. He has already, somewhat jokingly, said "fix > it!" But COBOL doesn't have the DWIW (Do What I Want) verb. I'm still waiting for the DWIT (Do What I'm Thinking) and RAE (Remove All Errors) instructions... ;-) ---

Re: COBOL "problem" (not really), but sort of.

2013-09-13 Thread Elardus Engelbrecht
John McKown wrote: >OP here. I guess I shouldn' t post while "ticked off" at someone. Apologies. Not me, I would just be 'p*ssed off!' ;-) >The real "problem" is that I simply was not able to explain to the programmer >__in terms that made sense to a COBOL programmer__ what was happening. His

Re: COBOL "problem" (not really), but sort of.

2013-09-13 Thread John McKown
t; >> Thomas Berg Specialist zOS\RQM\IT Delivery SWEDBANK AB (Publ) > >> > >> > -----Original Message- > >> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On > >> > Behalf Of John McKown > >> > Sent: W

Re: COBOL "problem" (not really), but sort of.

2013-09-12 Thread Clark Morris
al Message- >> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On >> > Behalf Of John McKown >> > Sent: Wednesday, September 11, 2013 7:02 PM >> > To: IBM-MAIN@LISTSERV.UA.EDU >> > Subject: COBOL "problem" (not really), but

Re: COBOL "problem" (not really), but sort of.

2013-09-12 Thread Joel C. Ewing
On 09/12/2013 01:33 AM, Timothy Sipples wrote: > John McKown writes: >> But COBOL doesn't have the DWIW (Do What I Want) verb. > > We're working on it. :-) > > Just be patient and keep smiling, John. You'll get there. Perhaps (as > another idea) there's already a bit of working, tested, efficient

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Timothy Sipples
John McKown writes: >But COBOL doesn't have the DWIW (Do What I Want) verb. We're working on it. :-) Just be patient and keep smiling, John. You'll get there. Perhaps (as another idea) there's already a bit of working, tested, efficient code in house that implements substantially the same functio

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread John McKown
BM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of John McKown > Sent: Wednesday, September 11, 2013 5:24 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: COBOL "problem" (not really), but sort of. > > I have now studied the program source. Let&#x

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Hardee, Chuck
Wednesday, September 11, 2013 5:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL "problem" (not really), but sort of. I have now studied the program source. Let's just drop this discussion because the program is junk. FD XDF-FILE. 01 XDF-RECORD 02 XDF-REC-LNG S9

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread John McKown
raid it doesn't look like this is > "reality". > > Frank > > > > > > > > > From: John McKown > >To: IBM-MAIN@LISTSERV.UA.EDU > >Sent: Wednesday, September 11, 2013 3:23 PM > >Subject: Re: COBOL "problem&qu

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Sambataro, Anthony (NIH/NBS) [E]
PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL "problem" (not really), but sort of. I can try that. The programmer says that he intents to define the passed in area in the calling program at the front of his WORKING-STORAGE so that the area is larger. I.e. it is _planning_ on a

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread John McKown
il.com] > Sent: Wednesday, September 11, 2013 1:21 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: COBOL "problem" (not really), but sort of. > > I can try that. The programmer says that he intents to define the passed > in area in the calling program at the front of his WORKING

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Frank Swarbrick
s of XDF-RECORD.  But in LINK-RECORD they are concatenated.  So I'm afraid it doesn't look like this is "reality". Frank > > From: John McKown >To: IBM-MAIN@LISTSERV.UA.EDU >Sent: Wednesday, September 11, 2013 3:23 PM >Subj

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Thomas Berg
hn McKown > Sent: Wednesday, September 11, 2013 11:24 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: COBOL "problem" (not really), but sort of. > > I have now studied the program source. Let's just drop this discussion > because the program is junk. > > FD

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Frank Swarbrick
I agree. > > From: "Farley, Peter x23353" >To: IBM-MAIN@LISTSERV.UA.EDU >Sent: Wednesday, September 11, 2013 3:02 PM >Subject: Re: COBOL "problem" (not really), but sort of. > > >That will work, but I can't

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Frank Swarbrick
To: IBM-MAIN@LISTSERV.UA.EDU >Sent: Wednesday, September 11, 2013 2:11 PM >Subject: Re: COBOL "problem" (not really), but sort of. > > >If I am not misremembering, Mr. Robert Heinlein's character Lazurus Long said:  > "Ignorance is curable, only stupidity is fat

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread John McKown
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > > Behalf Of John McKown > > Sent: Wednesday, September 11, 2013 10:16 PM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: COBOL "problem" (not really), but sort of. > > >

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Farley, Peter x23353
-MAIN@LISTSERV.UA.EDU] On Behalf Of Thomas Berg Sent: Wednesday, September 11, 2013 4:39 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL "problem" (not really), but sort of. I thought the length field was in LINKAGE SECTION given by the caller ? Best Regards Thomas Berg >

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Farley, Peter x23353
t: Wednesday, September 11, 2013 4:50 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL "problem" (not really), but sort of. I'm not sure if I'm understanding this 100% correctly, but take a look at this:  identification division.  program-id.  vlen.  environment division.

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Thomas Berg
nframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of John McKown > Sent: Wednesday, September 11, 2013 10:16 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: COBOL "problem" (not really), but sort of. > > Well explained. I will keep this to show him when t

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread John McKown
> Peter > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of John McKown > Sent: Wednesday, September 11, 2013 2:27 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: COBOL "problem" (not really), but

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Farley, Peter x23353
2013 2:27 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL "problem" (not really), but sort of. What you said was basically what I told the programmer to do. What he really wants is for the READ INTO to do is to read in the record "somewhere" (i.e. the I/O buffer). The ODO

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Jon Perryman
How about not making this about padding. My guess would be that cobol clears the storage before the read instead of padding storage after the read. I would telling the programmer: Before a READ INTO, the storage is cleared with nulls. The size of the area to be cleared is set by his program in

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread John McKown
What you said was basically what I told the programmer to do. What he really wants is for the READ INTO to do is to read in the record "somewhere" (i.e. the I/O buffer). The ODO value is within the record itself. So he was wanting COBOL to effectively do a MOVE of the ODO variable, then do the

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Joel C. Ewing
On 09/11/2013 12:02 PM, John McKown wrote: > A programmer came by today with a problem. He is sometimes getting a S0C4-4 > abend in a COBOL program. This is a subroutine. One of the parameters > passed in is a data area, which can be of various lengths. It is defined > with an OCCURS DEPENDING ON w

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Frank Swarbrick
September 11, 2013 11:02 AM >Subject: COBOL "problem" (not really), but sort of. > > >A programmer came by today with a problem. He is sometimes getting a S0C4-4 >abend in a COBOL program. This is a subroutine. One of the parameters >passed in is a data area, which

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Thomas Berg
alist zOS\RQM\IT Delivery SWEDBANK AB (Publ) > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of John McKown > Sent: Wednesday, September 11, 2013 7:02 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: COBOL "pro

COBOL "problem" (not really), but sort of.

2013-09-11 Thread John McKown
A programmer came by today with a problem. He is sometimes getting a S0C4-4 abend in a COBOL program. This is a subroutine. One of the parameters passed in is a data area, which can be of various lengths. It is defined with an OCCURS DEPENDING ON with a data element within the area. I.e. the first

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread Farley, Peter x23353
TSERV.UA.EDU Subject: COBOL "problem" (not really), but sort of. A programmer came by today with a problem. He is sometimes getting a S0C4-4 abend in a COBOL program. This is a subroutine. One of the parameters passed in is a data area, which can be of various lengths. It is defined with an O

Re: COBOL "problem" (not really), but sort of.

2013-09-11 Thread John McKown
ge- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > > Behalf Of John McKown > > Sent: Wednesday, September 11, 2013 7:02 PM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: COBOL "problem" (not really), but sort of. > > >