Search found 1877 matches

by Robert Sample
Thu Aug 17, 2023 1:28 am
Forum: Interview Questions.
Topic: how much length will s9(6)v9 occupy ?
Replies: 8
Views: 2393
United States of America

Re: how much length will s9(6)v9 occupy ?

COBOL dates back to 1959. z/OS dates back to OS/360 in 1964. IBM is strongly committed to backward compatibility so things that worked in 1965 will still work on a z16 today. COBOL's processing rules were defined in a totally different environment and while it has been extended to include object-ori...
by Robert Sample
Wed Aug 16, 2023 9:02 pm
Forum: Interview Questions.
Topic: how much length will s9(6)v9 occupy ?
Replies: 8
Views: 2393
United States of America

Re: how much length will s9(6)v9 occupy ?

The V in a PICTURE is an IMPLIED decimal point -- as in, it does not exist in the data. When moving numeric data around, COBOL aligns to the decimal point and the V will be important for that. S9(6)V9 COMP-3 will require 4 bytes. COMP-3 stores two decimal digits in each byte except for the last one,...
by Robert Sample
Mon Aug 14, 2023 7:09 pm
Forum: Interview Questions.
Topic: how much length will s9(6)v9 occupy ?
Replies: 8
Views: 2393
United States of America

Re: how much length will s9(6)v9 occupy ?

COBOL has different formats for numbers -- binary (COMP), packed decimal (COMP-3), and zoned decimal. The length will depend upon which format is used.
by Robert Sample
Mon Aug 14, 2023 7:06 pm
Forum: Interview Questions.
Topic: status code 99 on cobol?
Replies: 2
Views: 1239
United States of America

Re: status code 99 on cobol?

This is one of the questions very easily answered by looking in the Language Reference manual for your version of COBOL. And the answer is -- 99 is NOT a defined file status code for Enterprise COBOL. Some COBOL implementations like MicroFocus use 99 but not the mainframe.
by Robert Sample
Mon Aug 07, 2023 11:14 pm
Forum: DevOps for Mainframes and related news
Topic: SSH to mainframe from personal laptop.
Replies: 9
Views: 2418
United States of America

Re: SSH to mainframe from personal laptop.

SSH negotiates when authentication method to use between the two systems. The messages you list indicate that no common authentication method exists between them. Also, it does not appear that the SSH system on the PC is set up correctly since known_hosts doesn't exist.
by Robert Sample
Mon Aug 07, 2023 11:10 pm
Forum: Interview Questions.
Topic: Nodynam' is compiler option in COBOL.
Replies: 4
Views: 1548
United States of America

Re: Nodynam' is compiler option in COBOL.

This seems like a pretty easy thing to test -- what happened when you tried it?

Also, if you're compiling a CICS program, you MUST use NODYNAM -- no option.
by Robert Sample
Mon Aug 07, 2023 11:01 pm
Forum: JCL - Job Control Language.
Topic: BLKSIZE is always multiple of Lrecl in recfm=fb?
Replies: 6
Views: 1619
United States of America

Re: BLKSIZE is always multiple of Lrecl in recfm=fb?

Why can't mainframe do it all themself? You have to remember that IBM mainframes go back to 1964 when the s/360 and it's operating system became available. Systems were expensive relative to programmers and hence letting the programmer make the decisions was cheaper than putting things into the har...
by Robert Sample
Fri Aug 04, 2023 10:12 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: What is a "DNS lookup"?
Replies: 4
Views: 4207
United States of America

Re: What is a "DNS lookup"?

DNS lookup applies EVERY time someone attempts to access the Internet via a name instead of an ip address. For a mainframe, TCPIP has a started task that runs from shortly after IPL until shortly before a shutdown. One of the configuration parameters specified for TCPIP is the name server(s) for the...
by Robert Sample
Fri Jul 28, 2023 8:21 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: download copybook layout to Excel in mainframes.
Replies: 5
Views: 1496
United States of America

Re: download copybook layout to Excel in mainframes.

What is emulator? And how do I get that option.
The emulator is the product you get to the mainframe with. TN3270, Virtel, x3270, Vista TN3270 are some of them (there are many). And you don't "get that option" -- it is present in the emulator whether you know it or not.
by Robert Sample
Fri Jul 28, 2023 8:18 pm
Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
Topic: How to calculate the VSAM file size in GB?
Replies: 3
Views: 1120
United States of America

Re: How to calculate the VSAM file size in GB?

With mainframes, there are usually several different ways to do something. You could use DCOLLECT, you could approximate the total by going to ISPF 3.4 to find the tracks / cylinders allocated and multiplying by the appropriate value, and so forth. If the VSAM data set has alternate indexes, they ca...
by Robert Sample
Thu Jul 27, 2023 6:56 pm
Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
Topic: How to calculate the VSAM file size in GB?
Replies: 3
Views: 1120
United States of America

Re: How to calculate the VSAM file size in GB?

There are different types of VSAM data sets, but in general -- just as with sequential data sets -- you take the average record size and multiply by the number of records. Divide the result by 1024 to get KB, divide again by 1024 to get MB, and divide another time to get GB. If you have an alternate...
by Robert Sample
Tue Jul 18, 2023 5:50 am
Forum: JCL - Job Control Language.
Topic: Overwrite dataset in a PROC.
Replies: 2
Views: 3458
United States of America

Re: Overwrite dataset in a PROC.

Code: Select all

//STEP1.DATA1 ...
//   
//   
The blank // lines mean keep the same data.
by Robert Sample
Tue Jul 18, 2023 5:45 am
Forum: Interview Questions.
Topic: How to do num check in COBOL.
Replies: 2
Views: 1087
United States of America

Re: How to do num check in COBOL.

Use Function NUMVAL.
by Robert Sample
Tue Jul 11, 2023 6:52 pm
Forum: Thought of the Day, General Talk & Jokes.
Topic: Mainframe as a career.
Replies: 30
Views: 26145
United States of America

Re: Mainframe as a career.

So that means, mainframes are actually expensive? Yes and no. The dollar cost can be high, but you need to consider that there can be 10,000 or more people using the machine simultaneously. So the per-user cost for a mainframe actually tends to be less than (or equivalent to) the per-user cost of w...
by Robert Sample
Tue Jul 11, 2023 6:49 pm
Forum: JCL - Job Control Language.
Topic: CEE3250C the system or user abend sb37 r=00000004
Replies: 1
Views: 839
United States of America

Re: CEE3250C the system or user abend sb37 r=00000004

SB37: There are not enough space or no more extents available on the current volume. The system gave all the primary space and as much secondary space as it could. Disk volume out of space, cannot write output. You may need to use a different volume, or you may need to review your space allocation ...
by Robert Sample
Thu Jul 06, 2023 10:07 pm
Forum: You are a Guest.
Topic: Find the size of a PS file (Bytes of data it can hold) without reading
Replies: 1
Views: 4017
United States of America

Re: Find the size of a PS file (Bytes of data it can hold) without reading

You can ask your question on multiple forums, but the answers won't change that much since the same people answering on one forum usually answer on other forums. You are approaching the issue from the wrong end. Look for GX26-4577 on the Internet and download a copy of it. This manual gives you, for...
by Robert Sample
Thu Jul 06, 2023 9:59 pm
Forum: Thought of the Day, General Talk & Jokes.
Topic: Mainframe as a career.
Replies: 30
Views: 26145
United States of America

Re: Mainframe as a career.

Why do they even think of removing a mainframe computer? There is a management perception that mainframes are "expensive". I think this partly comes because mainframe software is expensive (it is not unusual for mainframe software vendors to sell their programs for well over US $100,000) ...
by Robert Sample
Thu Jul 06, 2023 9:54 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Know the last execution date of the program?
Replies: 10
Views: 2872
United States of America

Re: Know the last execution date of the program?

So there is no way to find the timestamp for sub-programs?
If the subprogram is statically linked into the load module, there is NO timestamp for it since it is part of the main program.
by Robert Sample
Sun Jul 02, 2023 6:41 am
Forum: Interview Questions.
Topic: COBOL interview question on PERFORM VARYING.
Replies: 4
Views: 1239
United States of America

Re: COBOL interview question on PERFORM VARYING.

Yes. GnuCOBOL is available to download for various platforms including Windows and Linux. GnuCOBOL has standard COBOL support, and I've run mainframe (Enterprise COBOL) program on it with no issues.
by Robert Sample
Tue Jun 27, 2023 8:32 pm
Forum: Interview Questions.
Topic: GDG limit above 255?
Replies: 2
Views: 1096
United States of America

Re: GDG limit above 255?

Your question is not at all clear. What do you mean by "If we give GDG limit above 255" -- are you talking about the IDCAMS definition? JCL usage? Something else entirely? Assuming you're talking about GDG definition in IDCAMS, there are two possibilities. If the EXTENDED parameter is spec...

Go to advanced search