Search found 97 matches

by zum13
Thu Aug 24, 2023 4:49 pm
Forum: Interview Questions.
Topic: how much length will s9(6)v9 occupy ?
Replies: 8
Views: 2850

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

The implied decimal helps with packed decimal representation where there is no decimal point present in the data. The same is true for binary coded decimal but it can also be used on text-based numbers (if you're looking to save space). However, I'll concentrate on packed since that is where you are...
by zum13
Thu Aug 17, 2023 3:47 am
Forum: Interview Questions.
Topic: how much length will s9(6)v9 occupy ?
Replies: 8
Views: 2850

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

In general, most compiled languages tend to use pre-declared variables in some form whereas interpretters are more inclined towards using an ad-hoc definition-on-use declaration system. Yes, languages like C or Java may express their variable declarations in a simpler manner than COBOL, but they sti...
by zum13
Thu Aug 17, 2023 3:21 am
Forum: IBM DB2 and IMS DB/DC
Topic: fetch cursor and cursor with return.
Replies: 4
Views: 1857

Re: fetch cursor and cursor with return.

The most common way of using a cursor consists of a DECLARE CURSOR for a SELECT statement that will read a number of rows, an OPEN to start processing, a number of iterations of FETCH to retrieve the individual rows, then a CLOSE to terminate processing on the cursor. This will all be done within th...
by zum13
Wed Aug 16, 2023 7:47 am
Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
Topic: IDENTIFY WEATHER THE KSDS EMPTY OR NOT USING SORT UTILITY
Replies: 9
Views: 3226

Re: IDENTIFY WEATHER THE KSDS EMPTY OR NOT USING SORT UTILITY

I stand corrected... DFSORT can read VSAM. I'll admit that it's been a very long time since I last tried (and failed) to use it with anything other than a sequential file!
by zum13
Tue Aug 15, 2023 12:14 am
Forum: SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.
Topic: IDENTIFY WEATHER THE KSDS EMPTY OR NOT USING SORT UTILITY
Replies: 9
Views: 3226

Re: IDENTIFY WEATHER THE KSDS EMPTY OR NOT USING SORT UTILITY

DFSORT only really likes sequential datasets, so using it do do this check on a VSAM file isn't doable (unless something has changed recently). What you need is an IDCAMS "PRINT" command: //STEP1 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //DD1 DD DSN=your.vsam.dataset,DISP=SHR //SYSIN DD * PR...
by zum13
Wed Aug 09, 2023 8:59 pm
Forum: IT News.
Topic: IBM z/OS 3.1, an AI-infused operating system for the next generation - is announced!
Replies: 2
Views: 3844

Re: IBM z/OS 3.1, an AI-infused operating system for the next generation - is announced!

My understanding is that the mainframe AI enhancements are likely of most use to the banking and finance sector where things like automatic credit decisions or suspicious activity detection have been performed using AI techniques for quite some time. The inclusion of AI functionality in the z16 syst...
by zum13
Mon Aug 07, 2023 6:13 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: How we can check the copybook and data set using ispf command like 3.14 or 3.16?
Replies: 4
Views: 1661

Re: How we can check the copybook and data set using ispf command like 3.14 or 3.16?

3.14 is the search utility which will let you find particular strings within the members of a PDS. If you give it the name of your copybook PDS and, say, a full or partial field name you want to find then 3.14 will report a list of members that match. 3.15 is the same tool but with more options avai...
by zum13
Mon Aug 07, 2023 5:33 pm
Forum: JCL - Job Control Language.
Topic: what disp parameter can be used?
Replies: 4
Views: 1364

Re: what disp parameter can be used?

DISP=NEW doesn't tolerate the dataset already existing, so assuming your job is a single step that takes an input dataset, processes it and writes the output dataset as new, the job will fail on the second run. The way to avoid this is to put in an initial step that deletes the dataset first: //STEP...
by zum13
Mon Aug 07, 2023 5:21 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: FTP and mainframes.
Replies: 1
Views: 969

Re: FTP and mainframes.

If you're logged onto TSO or running IKJEFT01 in batch, run "NETSTAT ALL (PORT 21" and you should get a whole load of info for the port back if the FTP daemon is running (assuming no one has changed the port number; 21 is the standard default). If you're a client wanting to connect in, the...
by zum13
Mon Aug 07, 2023 3:23 pm
Forum: CICS, Middleware and MQ Series.
Topic: Check if the CICS region is down or up?
Replies: 5
Views: 1780

Re: Check if the CICS region is down or up?

The sites I've worked on that have been using CICS have tended to leave it running continuously except for a small amount of outage time. Stuff that needed to run while CICS was down was considered a scheduling issue and so it was left to the operations staff to ensure that it happened at the right ...
by zum13
Sun Aug 06, 2023 4:34 am
Forum: CICS, Middleware and MQ Series.
Topic: Check if the CICS region is down or up?
Replies: 5
Views: 1780

Re: Check if the CICS region is down or up?

If just finding out if the started task for the region is running would suffice, asking SDSF will do that: /*REXX*/ Arg Taskname . If ISFCalls("ON") = 0 Then Do ISFPrefix = Taskname ISFOwner = "*" Address SDSF "ISFEXEC DA" If RC ¬= 0 Then Retcode = 12 Else If ISFRows = ...
by zum13
Thu Aug 03, 2023 11:31 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: How to find out who edited PS file?
Replies: 9
Views: 2890

Re: How to find out who edited PS file?

IBM has a thing called ZD&T which is an emulation system that lets z/OS run on a PC and will allow you full administration rights. This was intended for commercial use, so the pricing of it is rather high. They did, however, create a "Learner's Edition" which cost 120USD but it was onl...
by zum13
Thu Aug 03, 2023 11:14 pm
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: What is a "DNS lookup"?
Replies: 4
Views: 4256

Re: What is a "DNS lookup"?

Hello. There are IPv4 addresses which are four part dotted decimal (e.g. 10.6.33.96) and there are IPv6 addresses which are 128 bits long and in a colon-delimited hex format (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). These are the addresses used by the machines connected to the network, but the...
by zum13
Mon Jun 12, 2023 12:15 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: hard-coding of SQL in cobol
Replies: 6
Views: 3879

Re: hard-coding of SQL in cobol

That's what embedded SQL has meant since I started working with relational databases, and I go back to 1986 and SQL/DS (which is what DB2 for VM used to be called). According to the current DB2 manuals, it's still called that today... https://www.ibm.com/docs/en/db2-for-zos/12?topic=zos-embedded-sql...
by zum13
Thu Jun 08, 2023 5:27 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: hard-coding of SQL in cobol
Replies: 6
Views: 3879

Re: hard-coding of SQL in cobol

Yes. Any time you've got an "EXEC SQL" in a program, you've got embedded SQL.
by zum13
Sat Jun 03, 2023 9:34 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: hard-coding of SQL in cobol
Replies: 6
Views: 3879

Re: hard-coding of SQL in cobol

The term I've always heard and used is "embedded SQL". It's used for C, PL/1, assembler, etc as well and it's certainly the term used in the DB2 manuals. There are two forms. "Static" refers to having fixed SQL statements that can be handled by the precompiler (which gives a perf...
by zum13
Thu May 04, 2023 1:42 am
Forum: Other Mainframe Topics, Off-Topics, FAQs.
Topic: How to purge jobs submitted using rexx
Replies: 6
Views: 2202

Re: How to purge jobs submitted using rexx

OK, I'm going to put my sysprog's hat on and ask you the question that I would ask if I were maintaining the system you're running on... What exactly are you doing that needs a job submitting every five seconds? The problem with jobs is that you've got absolutely no guarantee as to when they are goi...

Go to advanced search