Search found 1877 matches

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: 719
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.
by Robert Sample
Sat Feb 24, 2024 9:03 am
Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
Topic: How to read a Vsam file in COBOL starting from next record of the key value?
Replies: 3
Views: 376
United States of America

Re: How to read a Vsam file in COBOL starting from next record of the key value?

START only works with DYNAMIC or RANDOM access mode -- you cannot use it with sequential.  Conversely, READ NEXT won't work for RANDOM access mode.
 
by Robert Sample
Thu Feb 15, 2024 2:18 am
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Rollback COBOL updates
Replies: 1
Views: 247
United States of America

Re: Rollback COBOL updates

Do NOT post your completely irrelevant question on the back of someone's topic.  Start your own topic instead.  And your question is so broad as to be meaningless.  Does the COBOL program update a sequential data set? a VSAM data set? a DB2 table? all of them?
by Robert Sample
Thu Feb 15, 2024 2:12 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: How do we find bad data in a file?
Replies: 5
Views: 430
United States of America

Re: How do we find bad data in a file?

It depends upon what you mean by "bad data" -- since what you consider bad may be perfectly valid.  For example, consider the hex characters X'0097995D'.  If they are treated as packed decimal, the value is -97995.  If they are treated as binary, the value is 9,935,197.  If they are treate...
by Robert Sample
Thu Feb 15, 2024 1:55 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: Read vsam file in reverse order?
Replies: 2
Views: 407
United States of America

Re: Read vsam file in reverse order?

Generally, VSAM data sets (like sequential data sets) will be read sequentially from the first record to the last.  You can use direct reads instead of sequential reads to skip around in the data set.   CICS does allow you to read in a reverse fashion by allowing EXEC CICS READPREV but this only app...
by Robert Sample
Thu Feb 15, 2024 1:47 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: increase the generation without loosing existing generation.
Replies: 10
Views: 603
United States of America

Re: increase the generation without loosing existing generation.

I try not to give absolute answers because there are so many different ways to configure a mainframe.  A GDG, for example, may be SMS-managed or non-SMS-managed and how they behave is slightly different.
by Robert Sample
Wed Feb 14, 2024 2:39 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: scope of mainframe technology still relevant.
Replies: 3
Views: 449
United States of America

Re: scope of mainframe technology still relevant.

Companies that use mainframes are regularly surveyed and report that they see the need to use mainframes into the 2030's and 2040's and sometimes even longer.  IBM's latest mainframes are very focused on cloud computing and newer technologies.  Your question frames mainframes as either/or with cloud...
by Robert Sample
Tue Feb 13, 2024 7:11 am
Forum: DevOps for Mainframes and related news
Topic: SSH to mainframe from personal laptop.
Replies: 8
Views: 2378
United States of America

Re: SSH to mainframe from personal laptop.

From https://www.howtouselinux.com/post/ssh-known_hosts-file:  "The ssh known_hosts file is a file that stores the public key of all of the servers that you have connected using ssh." and "In the context of computer networking, known_hosts is a file used by SSH (Secure Shell) clients ...
by Robert Sample
Tue Feb 13, 2024 7:05 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: increase the generation without loosing existing generation.
Replies: 10
Views: 603
United States of America

Re: increase the generation without loosing existing generation.

"When you say roller off that means "they are deleted? ". If yes, what happens to the data in them?"  Depending upon how your site is set up, they may be immediately deleted or they may be in ROLLED-OFF status for some period of time.  Eventually, they will be deleted.  And just ...
by Robert Sample
Tue Feb 13, 2024 7:01 am
Forum: Interview Questions.
Topic: Copybook is being used by 10 different programs.
Replies: 11
Views: 554
United States of America

Re: Copybook is being used by 10 different programs.

COBOL programs, when compiled, are not using variable names.  They are using offset and length instead.  So when making changes to a copy book, AS LONG AS THE OFFSET AND LENGTH do not change, the copy book does not need to be recompiled into programs.  However, any changes to offsets or lengths requ...
by Robert Sample
Tue Feb 06, 2024 7:43 pm
Forum: Interview Questions.
Topic: Copybook is being used by 10 different programs.
Replies: 11
Views: 554
United States of America

Re: Copybook is being used by 10 different programs.

It depends upon the changes. Assuming the copy book has some filler, and assuming that the filler is at the end of the copy book, then you can change it with little impact. If the copy book has no filler, or if the filler is not at the end, then every program using that copy book will need to be rec...
by Robert Sample
Tue Feb 06, 2024 7:35 pm
Forum: Site Announcements and Rules.
Topic: Create a "list of items".
Replies: 8
Views: 875
United States of America

Re: Create a "list of items".

If you click on the Post Reply button (not the Quick Reply), you will see a row of icons. The fifth and sixth icons from the left are for lists.
by Robert Sample
Tue Feb 06, 2024 7:32 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: increase the generation without loosing existing generation.
Replies: 10
Views: 603
United States of America

Re: increase the generation without loosing existing generation.

Try this:

Code: Select all

//STEP1 EXEC PGM=IDCAMS
//SYSIN DD *
ALTER YOUR.GDG.NAME LIMIT(30)
/*
One note: if you change the limit and decrease it, then generations will be rolled off so the GDG matches the new limit.
by Robert Sample
Tue Feb 06, 2024 4:19 am
Forum: Interview Questions.
Topic: Bypass a file in concatenation in JCL.
Replies: 1
Views: 260
United States of America

Re: Bypass a file in concatenation in JCL.

Why do you not want to use any utilities or condition codes?

And why would you think you need to? Just edit the JCL, change DD3 to point to fileX, and submit it.
by Robert Sample
Sun Feb 04, 2024 3:15 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: Print last record of Tape file.
Replies: 2
Views: 471
United States of America

Re: Print last record of Tape file.

Use IDCAMS to REPRO from the tape file to print. The last record printed will be the one you want. If your site has SAS, it's pretty easy to code up a SAS program to print just the last record (but you didn't ask for just the last record, you just said you want to print it so printing the entire dat...
by Robert Sample
Sun Feb 04, 2024 3:09 am
Forum: IBM DFSort, ICETOOL, ICEMAN, ICEGENER.
Topic: Delete file which is an input to of a DFSort Step ,once the file is read
Replies: 1
Views: 638
United States of America

Re: Delete file which is an input to of a DFSort Step ,once the file is read

After the DFSort step, add a step using IEFBR14 that has the data set (not file) coded DISP=(OLD,DELETE) or DISP=(MOD,DELETE).
by Robert Sample
Sat Feb 03, 2024 12:43 am
Forum: Ask for Job Guidance and referrals here.
Topic: How is scope of mainframe in market ?
Replies: 4
Views: 568
United States of America

Re: How is scope of mainframe in market ?

I think the question is more what YOU want to do and how you want to be categorized. IT executives repeatedly say in surveys that their company use of mainframes will continue for 10 ... 15 ... 20 years or more so moving away from mainframes may, at some point, limit your career. A December 2022 art...
by Robert Sample
Sat Feb 03, 2024 12:35 am
Forum: SyncSort, SyncTool, SyncGener.
Topic: how to extract data from the vsam file using jcl sort
Replies: 3
Views: 556
United States of America

Re: how to extract data from the vsam file using jcl sort

Googling sort with vsam returns about 174,000 hits and will tell you what you want to know.
by Robert Sample
Sat Feb 03, 2024 12:32 am
Forum: Interview Questions.
Topic: Execute specific steps in JCL without using IEBEDIT.
Replies: 3
Views: 1073
United States of America

Re: Execute specific steps in JCL without using IEBEDIT.

Without modifying the JCL in some way, it is not possible to selectively execute job steps. This question comes up pretty often -- interviewers seem to like using it -- but the answer doesn't change. It may be possible to use a job scheduler to set up the steps to execute, but that would depend upon...
by Robert Sample
Sat Feb 03, 2024 12:26 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: 1178
United States of America

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

There is no relationship between job names and file (data set) names. A single job may reference hundreds or thousands of data sets and inversely a single data set can be used by thousands of jobs. So there is not a TSO command to do what you want.

Go to advanced search