Search found 439 matches

by William Collins
Sat Nov 02, 2013 5:42 am
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: What is the difference b/w Index and subscript?
Replies: 5
Views: 3030

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

A small point. An index does not contain an address. It just contains the displacement of an element from the first item of the OCCURS. When looking at the first entry in a table, the index does really contain zero (although the programmer never needs to know that - until looking at a dump). Bala Ku...
by William Collins
Thu Oct 17, 2013 2:44 pm
Forum: Assembler & PL/I.
Topic: How to open a file in I-O mode in assembler?
Replies: 5
Views: 2506

Re: How to open a file in I-O mode in assembler?

If updating a dataset in place, the dataset must first be backed-up. For a QSAM dataset that would be a bit silly. No reason to update a QSAM dataset in place.

An ESDS is reasonable to update in place, as long as backed-up first.

Without the back-up it becomes a corrupt-in-place.
by William Collins
Wed Oct 16, 2013 4:34 pm
Forum: Scheduling Software for MVS, OS/390 and zOS
Topic: How to capture RUNDATE in JCL?
Replies: 6
Views: 2940

Re: How to capture RUNDATE in JCL?

Kanika, That is a good way to go. You can also put a bit more into it, like have "yesterday" and "tommorow" and "last working day of the week", etc, etc. Cycle the file round from one "run" to the next. Maintain the file automatically as the first thing the &q...
by William Collins
Mon Oct 14, 2013 2:23 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: What is the difference between 77 and 01?
Replies: 12
Views: 3514

Re: What is the difference between 77 and 01?

All the compiler options are documented in the Programming Guide (assuming you are on a Mainframe) and the generated code has an example and is discussed there.

If you are not on a Mainframe, what COBOL compiler are you using?
by William Collins
Mon Oct 14, 2013 4:33 am
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Look up for a records and change.
Replies: 2
Views: 1885

Re: Look up for a records and change.

Please provide a sample input file and expected output.

If you really want to change BE to BF anywhere on a record, or within certain locations, look at INREC FINDREP in the manual.
by William Collins
Mon Oct 14, 2013 4:30 am
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: What is the difference between Inrec fields and outrec?
Replies: 9
Views: 3598

Re: What is the difference between Inrec fields and outrec?

See if this link helps. If not, I think you need to make your question clearer.
by William Collins
Mon Oct 14, 2013 4:25 am
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Remove Duplicates and get output unsorted.
Replies: 8
Views: 2455

Re: Remove Duplicates and get output unsorted.

Do you only want duplicates which are consecutive removed, or if record number one is the same as the last record on the file, you want the last record removed? Either can be done, but the coding would be different, so need to know. Can you show representative sample input, and required output, plea...
by William Collins
Fri Oct 11, 2013 1:51 pm
Forum: Tip Of the Day.
Topic: SORT Tips.
Replies: 16
Views: 10901

Re: SORT Tips.

OUTFIL FNAMES=FBFILE,VTOF,BUILD=(5,84) would be better. OUTREC on OUTFIL is best left for backwards compatibility only. BUILD is 100% identical and does not cause confusion with OUTREC itself, which it is still correct to use when needed. INREC .... BUILD SORT .... FIELDS OUTREC .... BUILD OUTFIL ....
by William Collins
Wed Oct 09, 2013 12:13 pm
Forum: SyncSort, SyncTool, SyncGener.
Topic: Multiple STOPAFT in SORT.
Replies: 1
Views: 1539

Re: Multiple STOPAFT in SORT.

Yes, but not the way your title suggests.

Have a look at SAMPLE= on OUTFIL. Consult your documentation, If SAMPLE= is not available to you, there are many other ways to do it.
by William Collins
Tue Oct 08, 2013 4:45 am
Forum: Thought of the Day, General Talk & Jokes.
Topic: Only 20% will give right answer on 1st attempt.
Replies: 11
Views: 1789

Re: Only 20% will give right answer on 1st attempt.

"All of them" "Only as many as I needed to". "About the same as you did". "None. We're on the Ground Floor" "None. I took the lift". "None. I overcame them". "If I get the job, it'll be one of the first things I'll clarify". "...
by William Collins
Mon Oct 07, 2013 5:52 pm
Forum: Thought of the Day, General Talk & Jokes.
Topic: Only 20% will give right answer on 1st attempt.
Replies: 11
Views: 1789

Re: Only 20% will give right answer on 1st attempt.

I suppose the problem with any perhaps unrepresentative set of values is that any number of formulae may be intuited which may be defeated once further results are known. So it was a bit of a silly question of mine. I went for digit one plus digit two plus (digits-one-and-two multiplied by digit thr...
by William Collins
Sat Oct 05, 2013 4:37 am
Forum: Thought of the Day, General Talk & Jokes.
Topic: Only 20% will give right answer on 1st attempt.
Replies: 11
Views: 1789

Re: Only 20% will give right answer on 1st attempt.

Yes, they sneakily jumped over 68.

What would 497 be, Anuj?
by William Collins
Mon Sep 23, 2013 12:09 pm
Forum: JCL - Job Control Language.
Topic: Why browse is substituted on big datasets?
Replies: 7
Views: 3612

Re: Why browse is substituted on big datasets?

Only if you have "powers" :-) You'll need to talk to your support people, and explain why you need it. If you have a good case, and your boss behind you, you may get lucky. Generally, you can't "just do it" as it is system memory you are gobbling up, and if 50 developers all deci...
by William Collins
Sun Sep 22, 2013 8:05 pm
Forum: Interview Questions.
Topic: MOVE alphanumeric to numeric and S0C7.
Replies: 7
Views: 4887

Re: MOVE alphanumeric to numeric and S0C7.

OK. These days it is ulikely that the MOVE itself will have an instruction generated which will cause an abend. Using the subsequent result for calculation is a different thing. Here is your number (S9(3)). ZNZNSN The right-most half byte of each byte is the "Numeric" nybble - and should a...
by William Collins
Sun Sep 22, 2013 7:39 pm
Forum: Site Announcements and Rules.
Topic: Suggestion needed on BBcode Tags.
Replies: 16
Views: 3767

Re: Suggestion needed on BBcode Tags.

I prefer the Green on Black. The interesting stuff is clearer, and the CODE: SELECT ALL is much less prominent.
by William Collins
Fri Sep 06, 2013 4:55 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: What is the difference between 77 and 01?
Replies: 12
Views: 3514

Re: What is the difference between 77 and 01?

These days 77s and 01s are the same, apart from the elementary-only nature of the 77. Previously, 77s were unalighed, and would allow more efficient use of storage for small fields, but one the 1MB limit on WORKING-STORAGE was removed, it no longer matters. Certainly Enterprise COBOL has 77s on a do...
by William Collins
Thu Sep 05, 2013 11:59 am
Forum: Interview Questions.
Topic: MOVE alphanumeric to numeric and S0C7.
Replies: 7
Views: 4887

Re: MOVE alphanumeric to numeric and S0C7.

Well, some of what you have said is correct. Howerver, why don't you try it? With a USAGE DISPLAY numeric and a PACKED-DECIMAL/COMP-3. Then look at the Language Reference and the Programming Guide to see if you can clear it up yourself, and then come back here with any problems you still have. You a...
by William Collins
Wed Sep 04, 2013 5:20 pm
Forum: JCL - Job Control Language.
Topic: Can seprate steps have different classes in a single Job?
Replies: 2
Views: 1894

Re: Can seprate steps have different classes in a single Job

No. This would require that the job could leave one initiator and continue in another. If you want to run something with a different class, put it in a different job.
by William Collins
Sun Sep 01, 2013 1:52 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: LOW-VALUES and HIGH-VALUES and collating sequence..
Replies: 7
Views: 4581

Re: LOW-VALUES & HIGH-VALUES & collating sequence..

"Collating Sequence" is the order in which bit-patterns are treateed when they are being treated "in order". IF A LESS THAN B The collating sequence tells you, for specific values of A and B, whether the IF is true or not. LOW-VALUES is the lowest and HIGH-VALUES the highest in t...

Go to advanced search