Search found 439 matches

by William Collins
Sun Mar 23, 2014 10:19 pm
Forum: Suggestions & Feedback : About the website.
Topic: Test User.
Replies: 9
Views: 2722

Re: Test User.

If it's a help, I see no way to thank anyone either.
by William Collins
Mon Mar 10, 2014 5:23 am
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Remove Duplicates and get output unsorted.
Replies: 8
Views: 2471

Re: Remove Duplicates and get output unsorted.

We need all the questions answered, and sample input and expected output which cover the all the conditions. In the sameple you have shown, there are no duplicate records even,
by William Collins
Sat Mar 01, 2014 5:07 am
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Can we use SORTIN DD as Dummy?
Replies: 21
Views: 6406

Re: Can we use SORTIN DD as Dummy?

Can you post your code? I'm curious as to how you got it to work.
by William Collins
Thu Feb 20, 2014 1:10 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Share a file between program and sub-program.
Replies: 4
Views: 2554

Re: Share a file between program and sub-program.

The advice was not to try to do it that way... yes? Good. If you need to make file accesses from more than one program, put all the io for a file into one sub-program and use that, Use a parameter to indicate required function, a second one to indicate success/failure of IO (along with diagnostic in...
by William Collins
Thu Feb 20, 2014 4:08 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: Figure out the call chain of programs on zOS.
Replies: 6
Views: 1724

Re: Figure out the call chain of programs on zOS.

That's one question in the title and a different one in the body. Is Natural "LE Compliant"? Does Natural use the standard /360 calling conventions? If not, what does it do? Can you call other languages from Natural? What is it exactly that you want to see? The call chain would normallyl b...
by William Collins
Sun Feb 16, 2014 5:54 am
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Can we use SORTIN DD as Dummy?
Replies: 21
Views: 6406

Re: Can we use SORTIN DD as Dummy?

//SORTIN DD * with no data following it will give you want you want. When you say you've coded OUTREC, do you mean OUTREC or OUTFIL OUTREC? Either way, with no input data, neither OUTREC would have anything to process. You will need to use OUTFIL reporting features, HEADER1 or TRAILER1, and to remo...
by William Collins
Fri Feb 07, 2014 2:44 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Static and dynamic call.
Replies: 9
Views: 2765

Re: Static and dynamic call.

Why would you want to? You'd suddenly start using a different loadmodule from a previous CALL, and not have the previous WORKING-STORAGE values.
by William Collins
Thu Jan 23, 2014 6:24 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Static and Dynamic CALL in COBOL.
Replies: 4
Views: 2233

Re: Static and Dynamic CALL in COBOL.

Your understanding is correct. Your confusion would be nothing compared to that of the compiler if it did not know what sort of code to generate for something. Here's a CALL I want to have in a system which uses dynamic loading of modules: CALL "A". Here's the same CALL but for a system wh...
by William Collins
Tue Dec 31, 2013 1:51 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Difference among COPY, INCLUDE and ++INCLUDE.
Replies: 6
Views: 4191

Re: Difference among COPY, INCLUDE and ++INCLUDE.

How about posting the other best explanations so others can benefit. Why did you ask again if you already have several best explanations?
by William Collins
Fri Dec 27, 2013 8:14 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: soc-7 question
Replies: 10
Views: 2989

Re: soc-7 question

We thought from your original post that you'd already done that.

There are other ways to get a S0C7.

If you are genuinely researching the subject, or entering a competition and doing the work solely on your own, then you should consult the Principles of Operation.
by William Collins
Fri Dec 27, 2013 7:24 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: hex value display
Replies: 2
Views: 2363

Re: hex value display

REDEDFINES B as PIC X(3). DISPLAY that field. Use SET HEX ON (or similar for what you use for looking at the spool) to see the hex value.

Or find a program that can display your storage in hex (I'd pass up on the horrible one Robert found, but it is from IBM...)
by William Collins
Fri Dec 27, 2013 7:16 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: soc-7 question
Replies: 10
Views: 2989

Re: soc-7 question

Why do you need a S0C7? Why post the same question elsewhere? Is it a contest of some type?
by William Collins
Fri Dec 27, 2013 6:19 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: soc-7 question
Replies: 10
Views: 2989

Re: soc-7 question

You're going to have to be clear about what you mean. You know what you want, but we don't. Why would you want a S0C7 particularly? If you want a S0C7 with USAGE DISPLAY instead of USAGE COMP-3, why not try some arithmetic?
by William Collins
Wed Dec 25, 2013 4:38 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: When we use index and when we use subscipt?
Replies: 4
Views: 2107

Re: When we use index and when we use subscipt?

Search this forum. You will find longer discussion on the subject.
by William Collins
Thu Dec 12, 2013 12:01 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: What is the difference b/w Index and subscript?
Replies: 5
Views: 3060

Re: What is the difference b/w Index and subscript?

Other than solving an abend, as Robert has said, you, yourself, do not need to do any calculations with an index. If you SET an index to 1, you can reference the first element of an OCCURS. If you SET it to 2, you can reference the second element. You don't have to do any calculation, the compiler d...
by William Collins
Fri Nov 22, 2013 10:28 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Include and not-include records in output.
Replies: 5
Views: 2198

Re: Include and not-include records in output.

You mean you want to SORT but leave the first record where it is? First on input is first on output?

Look at ICETOOL's DATASORT operator.
by William Collins
Sat Nov 16, 2013 6:33 pm
Forum: Tip Of the Day.
Topic: SORT Tips.
Replies: 16
Views: 11126

Re: SORT Tips.

3. The following step demonstrates the look-up function CHANGE. For the below example the input and output data-sets are assumed to be of FB/80. //STEP001 EXEC PGM=SORT //SORTIN DD DISP=SHR,DSN=HLQ.ORIGINAL.INPUT //SORTOUT DD DISP=SHR,DSN=HLQ.CHANGED.OUTPUT //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIE...
by William Collins
Tue Nov 05, 2013 4:08 am
Forum: Interview Questions.
Topic: Why ESDS record can't be deleted physically?
Replies: 5
Views: 3610

Re: Why ESDS record can't be deleted physically?

An ESDS just does not support a physical delete. Or an insertion within existing data. It is how it is designed. End of story. For a KSDS, records can be inserted in key order, and deleted. It is how it is designed. End of story. The KSDS has more processing and control-records, which in the normal ...

Go to advanced search