Search found 1876 matches

by Robert Sample
Tue Apr 23, 2024 8:27 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: checkpoint in cobol program?
Replies: 1
Views: 95
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: 150
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: 2
Views: 112
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: 90
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: 150
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: 208
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: 9303
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: 9303
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: 671
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: 451
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: 324
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.
by Robert Sample
Tue Mar 19, 2024 6:42 pm
Forum: Interview Questions.
Topic: How to solve batch getting file already open error.
Replies: 3
Views: 305
United States of America

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.  
by Robert Sample
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: 247
United States of America

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.
by Robert Sample
Tue Mar 19, 2024 6:37 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: What is vatage tool in mainframe?
Replies: 1
Views: 256
United States of America

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).
by Robert Sample
Tue Mar 19, 2024 6:35 pm
Forum: Interview Questions.
Topic: perform cond for the first step in the jcl?
Replies: 4
Views: 395
United States of America

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.
by Robert Sample
Tue Mar 19, 2024 6:33 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: retrieve a deleted VSAM file.
Replies: 6
Views: 462
United States of America

Re: retrieve a deleted VSAM file.

"Does that mean system never takes a back-up of any data by default? Like we have history folder in windows?" The roots of z/OS go back to OS/360 in 1964.  The system won't take backups in general.  If you are using HSM or one of its competitor products then they provide backups but that's...
by Robert Sample
Mon Mar 11, 2024 9:20 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: retrieve a deleted VSAM file.
Replies: 6
Views: 462
United States of America

Re: retrieve a deleted VSAM file.

This is a question that can only be answered by your site support group.  The answer will depend upon the site, it's storage policies, and it's backup / retention policies in particular.  In general, if the data set was deleted and you don't have a backup of it, then it is gone.
by Robert Sample
Mon Mar 11, 2024 9:18 pm
Forum: Interview Questions.
Topic: perform cond for the first step in the jcl?
Replies: 4
Views: 395
United States of America

Re: perform cond for the first step in the jcl?

From the z/OS 3.1 MVS JCL Reference manual:
Location in the JCL
You can specify the COND parameter on any EXEC statement in the job. However, the system evaluates a COND parameter on the first EXEC statement in a job as false.

Go to advanced search