Search found 1884 matches

by Robert Sample
Mon Jan 13, 2025 8:40 pm
Forum: Interview Questions.
Topic: What is the difference between CALL and XCTL?
Replies: 4
Views: 3320
United States of America

Re: What is the difference between CALL and XCTL?

If you are talking about the difference between EXEC CICS CALL and EXEC CICS XCTL, the former acts as a subroutine call and will return to the program (the statement after the EXEC CICS CALL) when the subprogram ends whereas the latter transfers control to the new program and does not return to the ...
by Robert Sample
Sat Dec 14, 2024 10:47 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: What is AMODE 24 and 31 And RMODE?
Replies: 4
Views: 2587
United States of America

Re: What is AMODE 24 and 31 And RMODE?

I mean what if there was no AMODE or it was very less like 8-bit, what exactly would happen? Why is the concept needed?    Prior to IBM's announcement of 31-bit addressing in 1983, there was no such thing as AMODE or RMODE.  An address was 24 bits -- period.  One thing to keep in mind is that IBM i...
by Robert Sample
Sat Dec 07, 2024 8:33 am
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: What is AMODE 24 and 31 And RMODE?
Replies: 4
Views: 2587
United States of America

Re: What is AMODE 24 and 31 And RMODE?

AMODE is addressing mode, or how many bytes of memory can be addressed RMODE is residency mode, or where the load module is loaded into memory The original S/360 in 1964 used 24 bits (out of the 32 bits in the word) for addressing.  This allows 16,777,216 bytes of memory to be addressed.  AMODE 24 u...
by Robert Sample
Tue Oct 15, 2024 10:28 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: send email with an attachment from the mainframe
Replies: 12
Views: 5520
United States of America

Re: send email with an attachment from the mainframe

Find and study RFC 5321, which is the Internet standard way to use SMTP to send mail.  Sending attachments usually requires experimentation as the format is EXTREMELY picky and one wrong character may cause the attachment to not send.  Also, your site must have enabled the SMTP writer.  I recommend ...
by Robert Sample
Wed Jul 24, 2024 7:00 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read directly the last record of a input file
Replies: 5
Views: 3333
United States of America

Re: read directly the last record of a input file

If the input file is sequential, you cannot directly read the last record.
by Robert Sample
Tue Jun 04, 2024 6:19 pm
Forum: Interview Questions.
Topic: static or dynamic CALL in COBOL.
Replies: 2
Views: 2895
United States of America

Re: static or dynamic CALL in COBOL.

Your question makes as much sense as asking "how high is up?"  "Better" can be defined in different ways (such as lowest memory used, fastest execution time, easiest to modify, etc.) and hence the answer to your question will depend upon what you're wanting to optimize. In genera...
by Robert Sample
Mon Jun 03, 2024 7:26 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: minimum primary and secondary quantity of storage required
Replies: 8
Views: 6227
United States of America

Re: minimum primary and secondary quantity of storage required

You could get 9 of these blocks onto one track (56664 divided by 6160)
This is not accurate as there is system overhead as well.  Manual GX26-4577 has the details for 3390 devices and it shows only 8 blocks of size 6160 will fit on a track.
by Robert Sample
Sat May 04, 2024 10:16 pm
Forum: Interview Questions.
Topic: execute only step 2 and step 4 in JCL
Replies: 1
Views: 2680
United States of America

Re: execute only step 2 and step 4 in JCL

Edit the JCL to delete the other steps and submit it.
by Robert Sample
Tue Apr 23, 2024 8:27 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: checkpoint in cobol program?
Replies: 2
Views: 3987
United States of America

Re: checkpoint in cobol program?

Read the RERUN clause in the I-O-CONTROL paragraph starting on page 154 of the version 6.4 of Enterprise COBOL Language Reference manual.  You will probably also want to review the RERUN information in the Programming Guide manual.
by Robert Sample
Tue Apr 23, 2024 8:21 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read multiple input passed in COBOL
Replies: 3
Views: 3976
United States of America

Re: read multiple input passed in COBOL

You can only pass ONE parameter from JCL to COBOL.  You can parse that parameter any way you need, but it is only one parameter with one entry in the LINKAGE SECTION.
by Robert Sample
Tue Apr 23, 2024 8:19 pm
Forum: Interview Questions.
Topic: copy data from vsam to ps
Replies: 4
Views: 4147
United States of America

Re: copy data from vsam to ps

Why on earth would you want to do this?  IDCAMS is easy to use and efficient.  You could write a program to do the copy, but you'd have to write a program for every single copy you want to do -- use IDCAMS.
by Robert Sample
Tue Apr 23, 2024 8:14 pm
Forum: Interview Questions.
Topic: soc7 error in huge file.
Replies: 1
Views: 3226
United States of America

Re: soc7 error in huge file.

You will need to learn how to read the dump -- that will tell you the exact record with the problem and point you towards where the S0C7 occurred.
by Robert Sample
Thu Apr 18, 2024 7:08 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read multiple input passed in COBOL
Replies: 3
Views: 3976
United States of America

Re: read multiple input passed in COBOL

It is not clear what you are asking -- you'll need to provide an example so we can see what you want.  Parameters passed from JCL, in general, are available through the LINKAGE SECTION.
by Robert Sample
Thu Apr 18, 2024 7:06 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: read a VSAM file from bottom to top and length of a string using COBOL?
Replies: 5
Views: 18164
United States of America

Re: read a VSAM file from bottom to top and length of a string using COBOL?

Assuming you mean in reverse order when you say "from bottom to top" -- this cannot be done in Enterprise COBOL without adding a sequence number to the data set and sorting by the sequence number (descending). Repeat after me:  "COBOL DOES NOT HAVE STRINGS!"  Look at the PICTURE ...
by Robert Sample
Thu Apr 11, 2024 10:01 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: In COBOl, compare two files and write matching records to a file ...
Replies: 6
Views: 16217
United States of America

Re: In COBOl, compare two files and write matching records to a file ...

Not necessarily.  If the data set is sequential, and if the data set is sorted by some key, and if the key includes the HIGH-VALUES then that record will be last.  However, I've seen times when the data set wasn't sorted and the HIGH-VALUES occurred in the first record or somewhere in the middle of ...
by Robert Sample
Mon Apr 08, 2024 6:43 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: In COBOl, compare two files and write matching records to a file ...
Replies: 6
Views: 16217
United States of America

Re: In COBOl, compare two files and write matching records to a file ...

Yes, a data set can have a record of HIGH-VALUES (which is merely X'FFFFFF...') but it can also be used as a stop value, too.
by Robert Sample
Fri Mar 29, 2024 1:53 am
Forum: TSO, ISPF & REXX (Do you still do CLIST?!).
Topic: How to find out the list of jobs with the file name using tso command?
Replies: 4
Views: 6274
United States of America

Re: How to find out the list of jobs with the file name using tso command?

If your site uses a scheduler, investigate what an be done through the scheduler.  If your site submits through a PDS or PDSE, use ISPF option 3.14 to search the PDS / PDSE.  If neither of these is true, resign yourself to looking at each of the many thousands of job libraries that exist at your sit...
by Robert Sample
Tue Mar 19, 2024 6:44 pm
Forum: Interview Questions.
Topic: trigger a job through a job ?
Replies: 3
Views: 3302
United States of America

Re: trigger a job through a job ?

Check the JCL Reference manual -- //*NET is definitely NOT a comment.
by Robert Sample
Tue Mar 19, 2024 6:43 pm
Forum: SyncSort, SyncTool, SyncGener.
Topic: Copy records only having a specific strings.
Replies: 2
Views: 2730
United States of America

Re: Copy records only having a specific strings.

I think SORT will do this but I'm not an expert on SORT so I cannot say for sure.

Go to advanced search