Search found 1880 matches
- Wed Jul 24, 2024 7:00 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: read directly the last record of a input file
- Replies: 2
- Views: 539
Re: read directly the last record of a input file
If the input file is sequential, you cannot directly read the last record.
- Tue Jun 04, 2024 6:19 pm
- Forum: Interview Questions.
- Topic: static or dynamic CALL in COBOL.
- Replies: 2
- Views: 904
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...
- 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: 1641
Re: minimum primary and secondary quantity of storage required
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.You could get 9 of these blocks onto one track (56664 divided by 6160)
- Sat May 04, 2024 10:16 pm
- Forum: Interview Questions.
- Topic: execute only step 2 and step 4 in JCL
- Replies: 1
- Views: 930
Re: execute only step 2 and step 4 in JCL
Edit the JCL to delete the other steps and submit it.
- Tue Apr 23, 2024 8:27 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: checkpoint in cobol program?
- Replies: 2
- Views: 2083
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.
- Tue Apr 23, 2024 8:21 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: read multiple input passed in COBOL
- Replies: 3
- Views: 1991
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.
- Tue Apr 23, 2024 8:19 pm
- Forum: Interview Questions.
- Topic: copy data from vsam to ps
- Replies: 4
- Views: 2190
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.
- Tue Apr 23, 2024 8:14 pm
- Forum: Interview Questions.
- Topic: soc7 error in huge file.
- Replies: 1
- Views: 1557
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.
- Thu Apr 18, 2024 7:08 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: read multiple input passed in COBOL
- Replies: 3
- Views: 1991
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.
- 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: 16071
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 ...
- Tue Apr 16, 2024 4:28 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: convert S9(5)V9(2) Comp 3 to alphanumeric
- Replies: 3
- Views: 1496
Re: convert S9(5)V9(2) Comp 3 to alphanumeric
COBOL MOVE statement.
- 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: 12366
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 ...
- 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: 12366
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.
- 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: 2491
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...
- Tue Mar 19, 2024 6:44 pm
- Forum: Interview Questions.
- Topic: trigger a job through a job ?
- Replies: 3
- Views: 1553
Re: trigger a job through a job ?
Check the JCL Reference manual -- //*NET is definitely NOT a comment.
- Tue Mar 19, 2024 6:43 pm
- Forum: SyncSort, SyncTool, SyncGener.
- Topic: Copy records only having a specific strings.
- Replies: 2
- Views: 1277
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.
- Tue Mar 19, 2024 6:42 pm
- Forum: Interview Questions.
- Topic: How to solve batch getting file already open error.
- Replies: 3
- Views: 1296
Re: How to solve batch getting file already open error.
If I recall correctly, and I may not, CICS does an implicit VERIFY when opening a VSAM file that needs the VERIFY.
- Tue Mar 19, 2024 6:39 pm
- Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
- Topic: remove duplicates in two files and write unique to output file
- Replies: 1
- Views: 1210
Re: remove duplicates in two files and write unique to output file
SORT is, by far, the easiest way to do this. Other than using an array, you could use a matched merge program in COBOL or other language of your choice.
- Tue Mar 19, 2024 6:37 pm
- Forum: Other Mainframe Topics, Off-Topics, FAQs.
- Topic: What is vatage tool in mainframe?
- Replies: 1
- Views: 1345
Re: What is vatage tool in mainframe?
I've never heard of a mainframe tool called "ventage". There is a tool called CA-VANTAGE and you can research it on the CA web site (or do a Google search).
- Tue Mar 19, 2024 6:35 pm
- Forum: Interview Questions.
- Topic: perform cond for the first step in the jcl?
- Replies: 4
- Views: 1619
Re: perform cond for the first step in the jcl?
Probably because then there would have to be special logic for the first step as opposed to all the other steps. It's easier to just evaluate the first step COND as false.