Search found 439 matches

by William Collins
Fri Dec 04, 2015 3:58 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: SUM FIELDS=NONE in sort.
Replies: 7
Views: 4347

Re: SUM FIELDS=NONE in sort.

As part of a SUM operation there is the dropping of duplicate keys. FIELDS=NONE on SUM just does that part, as there is nothing to SUM. If you specify something to SUM, it is summed, and the other duplicates of the first record are still dropped. If you need something which SELECT provides easily wh...
by William Collins
Tue Dec 01, 2015 7:45 pm
Forum: Hercules, z390, zCOBOL, CBT Tape Files.
Topic: ACCEPT in OpenCOBOL.
Replies: 14
Views: 8725

Re: ACCEPT in OpenCOBOL.

I'm using GnuCOBOL 2.0. You should use at least GnuCOBOL 1.1 (current release). OpenCOBOL is no longer supported as that. When I run your program I get the expected (for GnuCOBOL) results, which is if I enter a single digit, I get seven blanks followed by the digit for the numeric-edited field and e...
by William Collins
Tue Dec 01, 2015 6:32 pm
Forum: TSO, ISPF & REXX (Do you still do CLIST?!).
Topic: Delete data from column in Edit Mode.
Replies: 9
Views: 3577

Re: Delete data from column in Edit Mode.

If your data is "text" then any non-text value will do.

If you data contains packed-decimal fields, then chose any non-text whose hex-representation starts with A-F.

If your data contains binary fields, then you'd have to check, because any bit-combination could exist.
by William Collins
Mon Nov 30, 2015 9:00 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Reverse string in COBOL without using REVERSE function?
Replies: 4
Views: 2025

Re: Reverse string in COBOL without using REVERSE function?

Well, no, it doesn't work. Use a length of 10. Sit down with a pencil and paper and work out what happens with all spaces, one character plus nine spaces, five characters (plus space), nine (plus one space) and ten characters (plus no space).
by William Collins
Mon Nov 30, 2015 8:39 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Significance of the sequence number in COBOL.
Replies: 9
Views: 1948

Re: Significance of the sequence number in COBOL.

In the ISPF Editor: NUMBER ON COBOL UNNUM NUMBER <back to previous state, if necessary> That will clobber anything in columns one to six. Not a lot of people know about NUMBER ON COBOL, so just tossing it in. I have seen columns one to six used for various things, never really with much point. You c...
by William Collins
Fri Nov 27, 2015 7:22 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: COBOL quality check on mainframes, any tool?
Replies: 16
Views: 2390

Re: COBOL quality check on mainframes, any tool?

OPTIMIZE is not going to help with "indentation".
by William Collins
Wed Nov 25, 2015 9:03 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: In COBOL, 01 level takes more memory?
Replies: 8
Views: 2252

Re: In COBOL, 01 level takes more memory?

More memory than 77s. I don't see anything else which makes much sense. An 01 takes more (or less) memory than another 01? Certainly possible, even wildly common.

Also, for fun:

Code: Select all

LINKAGE SECTION.
01  A PIC X.
01  B.
    05  FILLER PIC X(7).
Which "takes more memory" now?
by William Collins
Wed Nov 25, 2015 4:50 am
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: In COBOL, 01 level takes more memory?
Replies: 8
Views: 2252

Re: In COBOL, 01 level takes more memory?

Seven 77's of PIC X used to take less space than your seven 05s, because you have one slack byte :-) Now they take the same amount of space as seven 01-levels of PIC X (56 bytes). The question is also making a link between storage used by 77- and 01-levels and tables (OCCURS), which makes no sense b...
by William Collins
Tue Nov 24, 2015 3:44 pm
Forum: JCL - Job Control Language.
Topic: Difference between steplib and proclib
Replies: 3
Views: 1882

Re: Difference between steplib and proclib

Yes, both are invoked by the EXEC statement, but different formats of the EXEC statement, which do different things. A PROC contains JCL. A PGM is executable. PROCLIB tells the system where to look for (additional) PROCs. STEPLIB tells the system where to look for (additional) PGMs (executable progr...
by William Collins
Mon Nov 23, 2015 4:31 pm
Forum: Interview Questions.
Topic: Work data sets can for a step?
Replies: 12
Views: 1798

Re: Work data sets can for a step?

Generally, work datasets aren't used outside utilities and products. Where they are used, they are used for specific purposes, and the technical staff responsible for those utilities and products will know how to define/optimise their use. For SORT it is mostly best to use dynamic allocation rather ...
by William Collins
Mon Nov 23, 2015 4:22 pm
Forum: Interview Questions.
Topic: How to solve S0C7?
Replies: 4
Views: 1292

Re: How to solve S0C7?

You find the instruction which failed. You find what data is being referenced in that instruction. If only one piece of data is involved (for instance the instruction is a ZAP (Zero and Add Packed), or a CVB (Convert to Binary) then you know it is bad. If two pieces of data are involved, establish w...
by William Collins
Sat Nov 21, 2015 3:04 pm
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: SUM FIELDS=NONE in sort.
Replies: 7
Views: 4347

Re: SUM FIELDS=NONE in sort.

Yes, Chuck. It has to be with a single file, SORTIN01 replacing SORTIN. Use of EQUALS if required to preserve order (if "base" record details are significant and the first record is wanted for the base). The OUTFIL reporting features can also be used, REMOVECC,NODETAIL and SECTIONS with TR...
by William Collins
Fri Nov 20, 2015 6:37 pm
Forum: Interview Questions.
Topic: Is the program called statically or dynamically?
Replies: 9
Views: 1152

Re: Is the program called statically or dynamically?

Interviewers seem to think it is a question which separates the COBOL Men from the COBOL Boys. There is no practical benefit in knowing the answer.

Although the question can be easily located by search-engineing, I'd guess there are also wrong answers out there.
by William Collins
Thu Nov 19, 2015 7:43 pm
Forum: TSO, ISPF & REXX (Do you still do CLIST?!).
Topic: Delete data from column in Edit Mode.
Replies: 9
Views: 3577

Re: Delete data from column in Edit Mode.

You can also locate information on Picture Strings in the online help. Try FIND, Specifying the character string.
by William Collins
Thu Nov 19, 2015 3:11 pm
Forum: Interview Questions.
Topic: Work data sets can for a step?
Replies: 12
Views: 1798

Re: Work data sets can for a step?

Are you asking about a SORT, or some other specific utility, or generally?
by William Collins
Thu Nov 19, 2015 3:07 pm
Forum: Interview Questions.
Topic: Difference in JCL for different type of programs.
Replies: 2
Views: 577

Re: Difference in JCL for different type of programs.

Do you mean the JCL for compiling these, or running them?
by William Collins
Thu Nov 19, 2015 3:05 pm
Forum: TSO, ISPF & REXX (Do you still do CLIST?!).
Topic: Way to increase the default logoff time.
Replies: 5
Views: 1026

Re: Way to increase the default logoff time.

Five minutes is excessive. Nope, I don't mean that. Five minutes is excessively tight. It is a resource-saving thing (there's lots of debate about what is actually saved). You should request, through your boss, a review of this. With five minutes, I'd suspect there are so many log-offs (forced) and ...
by William Collins
Thu Nov 19, 2015 2:59 pm
Forum: Interview Questions.
Topic: FB or FBA for a COBOL report writing program.
Replies: 3
Views: 1217

Re: FB or FBA for a COBOL report writing program.

When printers used of have a fixed number of columns on a page, one of the standards (for Mainframes anyway) was 132 columns. If you notice your 133, you have the extra byte for your control-code, It is slightly better to use FBA (or FBM, look it up) as "some things" automatically distingu...
by William Collins
Thu Nov 19, 2015 2:52 pm
Forum: Hercules, z390, zCOBOL, CBT Tape Files.
Topic: ACCEPT in OpenCOBOL.
Replies: 14
Views: 8725

Re: ACCEPT in OpenCOBOL.

In (OpenCOBOL)/GnuCOBOL the ACCEPT takes account of the field definition, so acts appropriately, even for "edited" PICtures. In Enterprise COBOL, the field on ACCEPT is treated as alpha-numeric, no matter how it is defined. There isn't even really space-padding, because the spaces come fro...
by William Collins
Thu Nov 19, 2015 2:39 pm
Forum: Interview Questions.
Topic: Is the program called statically or dynamically?
Replies: 9
Views: 1152

Re: Is the program called statically or dynamically?

By just looking at the program source it is impossible to tell whether a CALL will be static or dynamic for a CALL "literal" because it is a compiler option which determines that.

Go to advanced search