MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 66 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: Dynamic File Allocation in COBOL
haatvedt

Replies: 12
Views: 19510

PostForum: Application Programming   Posted: Fri Dec 31, 2021 1:52 am   Subject: Dynamic File Allocation in COBOL
Jim / Kolusu,

years ago I used BPXWDYN to dynamically allocate a tape dataset. However I had to request a security change to allow my userid to dynamically mount tapes.

perhaps this has chang ...
  Topic: Initaiize group variable
haatvedt

Replies: 6
Views: 8608

PostForum: Application Programming   Posted: Tue Sep 28, 2021 12:21 pm   Subject: Initaiize group variable
One thing to consider is that the Initialize verb does NOTHING to FILLER areas and as such they would have garbage in them without the preceeding MOVE SPACES
  Topic: COBOL Host variable
haatvedt

Replies: 3
Views: 4528

PostForum: Application Programming   Posted: Wed Sep 22, 2021 1:22 pm   Subject: COBOL Host variable
n DB2 the column is defined as decimal, in COBOL the host variable should be usage COMP-3.

select polno into :ws-pol-num from policy where polno = :pol-num

I declared ws-pol-num pic 9(16 ...
  Topic: Defining an index where you know the values of key fields
haatvedt

Replies: 3
Views: 4150

PostForum: Database   Posted: Tue May 25, 2021 10:14 pm   Subject: Defining an index where you know the values of key fields
If you are only using this new index to delete rows from the table, you might consider the following which would be more efficient.

Set up an on demand REORG job which includes a DISCARD parameter. ...
  Topic: Cobol question internal table overflow
haatvedt

Replies: 5
Views: 5354

PostForum: Application Programming   Posted: Tue May 25, 2021 10:08 pm   Subject: Cobol question internal table overflow
I believe that Enterprise COBOL would align "01" levels at a 16 byte boundary.

Check the address of W-TBL and J to see if that is the case. If so that explains why J was not overlaid by ...
  Topic: Compress memory area from PL/1 application program
haatvedt

Replies: 4
Views: 5301

PostForum: Application Programming   Posted: Thu May 06, 2021 10:58 pm   Subject: Compress memory area from PL/1 application program
Bauer, are you attempting to reduce the size of the data in memory OR are you attempting to reduce the size of the data when stored on DASD.

If you are attempting to reduce the size on DASD, then ...
  Topic: DAYS vs YEAR return different date
haatvedt

Replies: 5
Views: 5022

PostForum: Database   Posted: Mon Jan 04, 2021 2:22 pm   Subject: DAYS vs YEAR return different date
Nic,

try the following query as a "leap day" appears to correctly adjust the date correctly.


SELECT DATE('2020-02-29') - 1 YEAR FROM SYSIBM.SYSDUMMY1

result ==> 2019-02-28
  Topic: Open and fetch SQL cursor
haatvedt

Replies: 4
Views: 3426

PostForum: Application Programming   Posted: Fri Jun 26, 2020 4:49 pm   Subject: Open and fetch SQL cursor
Michael,

This is not to start a flame war about coding styles. I've always found that organizations produce better code if they have some coding standards and attempt to adhere to them.

I starte ...
  Topic: Open and fetch SQL cursor
haatvedt

Replies: 4
Views: 3426

PostForum: Application Programming   Posted: Wed Jun 24, 2020 4:11 pm   Subject: Open and fetch SQL cursor
PERFORM 100-OPEN-CURSOR THRU 100-EXIT.

PERFORM WITH TEST AFTER UNTIL SQLCODE NOT EQUAL ZERO
PERFORM 200-FETCH-CURSOR THRU 200-EXIT
END-PERFORM.

IF SQLCODE NOT EQUAL +100
PERFORM 8000- ...
  Topic: Same query different CPU time with different host value
haatvedt

Replies: 7
Views: 6411

PostForum: Database   Posted: Wed Jun 24, 2020 3:58 pm   Subject: Same query different CPU time with different host value
Santosh,

REOPT(ALWAYS) is something that I've seen used when the data is skewed. So far I don't know if you have shown that the data distribution is skewed. If the data is not skewed or you are acc ...
  Topic: Same query different CPU time with different host value
haatvedt

Replies: 7
Views: 6411

PostForum: Database   Posted: Sun Jun 21, 2020 5:54 pm   Subject: Same query different CPU time with different host value
Santosh, optimizing SQL queries is not trivial, if you want to get more help on this perhaps you could send me an email (see my signature).

remember that the explain cost is an ESTIMATE based on t ...
  Topic: SPUFI vs Stored PROC Access path
haatvedt

Replies: 3
Views: 4323

PostForum: Database   Posted: Sat Jun 20, 2020 1:22 pm   Subject: SPUFI vs Stored PROC Access path
Santosh,

the access path for SPUFI is accessing the current DB2 stats to determine the access path

the access path for the SP is using the DB2 stats at the time the BIND was done on the SP

mo ...
  Topic: Same query different CPU time with different host value
haatvedt

Replies: 7
Views: 6411

PostForum: Database   Posted: Sat Jun 20, 2020 1:08 pm   Subject: Same query different CPU time with different host value
Santosh,

I suspect that the data is skewed and does not have a uniform distribution. I have a few questions.

How many rows exist on the table with SECURITY = "ABCD" ?

How many rows ...
  Topic: Adding new index on db2 and cobol recompilation
haatvedt

Replies: 2
Views: 3737

PostForum: Application Programming   Posted: Sat Feb 04, 2017 2:45 pm   Subject: Adding new index on db2 and cobol recompilation
Kolusu / Sharss,

there is no need to recompile your programs to take advantage of a new index on a DB2 table.

To accomplish this you just need to do DB2 BIND's on the packages which use that tab ...
  Topic: Batch job's CPU time difference between Production and TEST
haatvedt

Replies: 3
Views: 3490

PostForum: Application Programming   Posted: Wed Jan 18, 2017 11:41 pm   Subject: Batch job's CPU time difference between Production and TEST
If you have the Strobe tool from Compuware or a similar tool from another vendor I would suggest that you use that to analyze the performance.

Are any of the files in your job VSAM ? If so I would ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group