Search found 439 matches
- Mon Nov 14, 2016 1:03 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: READ and don't proces the record in COBOL.
- Replies: 3
- Views: 932
Re: READ and don't proces the record in COBOL.
Don't use NEXT SENTENCE (ever, unless you compiler is so old as to not allow it). Use CONTINUE. NEXT SENTENCE will work as expected if an IF (or wherever else used) is terminated by a full-stop/period. It will not, otherwise, work as the reader of the code expects. NEXT SENTENCE is effectively GO TO...
- Fri Sep 23, 2016 10:07 pm
- Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
- Topic: Keep the SORT order in output as input while removing the duplicates.
- Replies: 2
- Views: 862
Re: Keep the SORT order in output as input while removing the duplicates.
Don't sort the data twice when you don't even need to do it once. Now, you may have to do one SORT, if your keys are not contiguous, but you want them so. And then you do have to do two SORT, as outlined above. However, you also may want to deduplicate contiguous keys whilst leaving the same key val...
- Mon Jun 27, 2016 10:49 pm
- Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
- Topic: Add count based on the date.
- Replies: 8
- Views: 708
Re: Add count based on the date.
Look especially at the OUTFIL reporting features, SECTIONS with COUNT (and NODETAIL,REMOVECC).
- Mon Jun 27, 2016 10:46 pm
- Forum: Thought of the Day, General Talk & Jokes.
- Topic: steenking recursion
- Replies: 4
- Views: 452
Re: steenking recursion
Surely the two main characters in the file must have used recursion? They started out as best buddies, and ended up with schizophrenic hatred towards each other. Sounds like recursion... (at least the effects of trying to use it above all else).
- Tue Jun 21, 2016 10:10 pm
- Forum: Interview Questions.
- Topic: Use of Dummy Utility and what it does?
- Replies: 17
- Views: 1740
Re: Use of Dummy Utility and what it does?
The person presenting/conducting even a technical interview may be a Human Resources/Personnel person, and not know any of the technicalities. Someone writes the questions and answers for them. You can often get a good idea when you ask for clarification, and none is given. Like in your case. For a ...
- Mon Jun 20, 2016 11:05 am
- Forum: Interview Questions.
- Topic: Use of Dummy Utility and what it does?
- Replies: 17
- Views: 1740
Re: Use of Dummy Utility and what it does?
I've never hard of IEFBR14 being called "the dummy utility". I'd have done exactly the same as Ankit. Although perhaps I'd have said a little more at the end. Everybody and their dog has used IEFBR14, and any site that thinks they've got a cool cutesy name for it, and that someone who is p...
- Tue May 24, 2016 9:55 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: Can COBOL have multiple entry points in a program?
- Replies: 5
- Views: 1576
Re: Can COBOL have multiple entry points in a program?
Well, they were never really needed, in the sense that you could arrange to do the same thing another way. Unless you wanted to get really tortuous. ENTRY-points would allow different "functions" to be processed by the same program with a logical division of the code, but exactly the same ...
- Sat May 21, 2016 1:08 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: Count numbers of lines under each header
- Replies: 13
- Views: 6383
Re: Count numbers of lines under each header
enrico's idea is a flyer for this, but bear in mind that it is not a panacea for all "we should have thought of that when we designed the file" situations.
So, why is the count needed? Why can't it be put on when the file is created?
So, why is the count needed? Why can't it be put on when the file is created?
- Fri May 20, 2016 11:58 am
- Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
- Topic: Can we append a constant number to records after an interval?
- Replies: 5
- Views: 502
Re: Can we append a constant number to records after an interval?
Yes, it can be done, a little faster than Robert is alluding :-) What do you want to put in those two bytes? Do you want separate counts, or a count of records changed? Actually, separate counts are easy (divide total number of records by seven for the first and 10 for the second). There's even a fo...
- Fri May 20, 2016 11:33 am
- Forum: Other Mainframe Topics, Off-Topics, FAQs.
- Topic: Can we block domains while using JCL to send emails?
- Replies: 8
- Views: 746
Re: Can we block domains while using JCL to send emails?
Not my area, so can't be sure, but look at this one: https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.halz002/smtp_cfg_exit_facility.htm Before dismissing it (incoming mail) look at the last paragraph. Seems to imply the the route JES-to-SMTP counts as "incoming". ...
- Tue May 10, 2016 11:19 am
- Forum: Other Mainframe Topics, Off-Topics, FAQs.
- Topic: Can we block domains while using JCL to send emails?
- Replies: 8
- Views: 746
Re: Can we block domains while using JCL to send emails?
If you know you have addresses you don't want to send email to, just don't send it. I've never heard of the blocking of sending email. Just don't do it.
- Mon May 09, 2016 10:36 am
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: COBOL program and wrong DD name.
- Replies: 3
- Views: 741
Re: COBOL program and wrong DD name.
And to not get an abend, you have coded the FILE STATUS clause - and simply not checked it.
Which is the worst thing you can do. Because then any IO problems are ignored, because by using FILE STATUS you are telling the run-time that you want to check things, and then you don't bother.
Which is the worst thing you can do. Because then any IO problems are ignored, because by using FILE STATUS you are telling the run-time that you want to check things, and then you don't bother.
- Fri Apr 29, 2016 4:11 am
- Forum: Interview Questions.
- Topic: Check table overflow?
- Replies: 3
- Views: 625
Re: Check table overflow?
If not using SSRANGE already, you can recompile all the programs with SSRANGE. You don't need to change any code.
- Fri Apr 08, 2016 6:19 pm
- Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
- Topic: LISTCAT in IDCAMS.
- Replies: 4
- Views: 2353
Re: LISTCAT in IDCAMS.
Why two steps? You can do multiple commands in one IDCAMS step.
- Thu Apr 07, 2016 8:58 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: Alocating SYSOUT dynamically in COBOL.
- Replies: 7
- Views: 1242
Re: Alocating SYSOUT dynamically in COBOL.
There was a recent Request For Enhancement (RFE) submitted to IBM to allow this. It was declined, although the decline messages refers to //SYSOUT DD ... not to //dddd DD SYSOUT=*.
- Thu Apr 07, 2016 1:43 pm
- Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
- Topic: DFSORT extended diagnostics.
- Replies: 1
- Views: 415
Re: DFSORT extended diagnostics.
You've already asked this elsewhere and been offered the resources of the DFSORT team. Why do you think you'd get a better answer here?
- Fri Apr 01, 2016 4:09 pm
- Forum: Interview Questions.
- Topic: Index and Subscript?
- Replies: 13
- Views: 5613
Re: Index and Subscript?
OFFSET and LIST are two different types of output listing for the part which relates to generated code. The LIST output includes an offset for each generated instruction. The OFFSET output only shows the offset of the first instruction generated for the line of COBOL in question. The LIST output is ...
- Tue Mar 29, 2016 8:46 pm
- Forum: You are a Guest.
- Topic: Get the latest features of Sort.
- Replies: 2
- Views: 1631
- Mon Mar 28, 2016 11:55 am
- Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
- Topic: VSAM Tuning Parameters.
- Replies: 3
- Views: 616
Re: VSAM Tuning Parameters.
The biggest factor is the data and how it is used. Next is what you are tuning for? Performance (response time) or resources (like space). If you don't know the data, and you don't know what you are tuning for, then the exercise is largely pointless. The chances of getting it correct would be almost...
- Wed Mar 23, 2016 1:41 pm
- Forum: Interview Questions.
- Topic: Index and Subscript?
- Replies: 13
- Views: 5613
Re: Index and Subscript?
The OFFSET compiler option will give the displacement of the first instruction generated by the compiler for the line of code. The LIST compiler option lists all the generated instructions. An offset from an abend can be found exactly in the LIST output, except for the important case Robert mentione...