Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Getting SQLCODE -302 after migrating DB2 V7 to V8 IN ibm z/os
Sri wrote:
> All
>
> Recenetly our shop migrated to DB2 V8 from V7. We are in IBM System Level:
> z/OS 1.6.1 @ RSU 0702.
> <SNIP> . . . There is no code modification made for many
> years. It is working fine in DB2 V7 enviornments. The module is using
> <SNIP>
> Any idea we need to change the code for v8 or is the probelm with DB2 v8
> migration.
>
> Thanks
> Ravi

At the risk of raising the wrath of some on this list, ...

The first question I have is which compiler was used to compile the
program?  Depending on the 'mode' you are running DB2 V8, you may be
running into the minimum level of the compiled code required for DB2 V8.
Specifically, to run in New Function Mode [NFM], your COBOL program
must have been compiled by Enterprise COBOL V3.2 or later.

There are actually three modes for running DB2 V8:
1)  Compatibility Mode (CM) is acceptable provided the code was
successfully running with DB2 V7.  In this case, as long as you meet the
compiler level for V7, you're OK.
2)  Before you can move to NFM, you must pass through the Enabling New
Function Mode [ENFM].  This is basically the stage where you meet the
prerequisites for NFM, you have started some of the migration steps, but
you have not attempted to exploit the new functions in V8.
3)  Then finally, NFM.

Ref:   DB2 UDB for z/OS V8 Release Planning Guide (SC18-7425-02)
Chapter 3. Planning for migration, conversion, and fallback

So, if you really have the situation "...There is no code modification
made for many years...," then I would suspect that you might have a
problem with the compiler level of your program.

Carl

Report this thread to moderator Post Follow-up to this message
Old Post
CG
06-03-07 02:55 AM


Re: Getting SQLCODE -302 after migrating DB2 V7 to V8 IN ibm z/os
In article <58811$466217da$d06620ed$22614@FUSE.NET>,
CG  <Carl.Gehr.ButNoSPAMStuff@MCGCG.Com> wrote:

[snip]

>So, if you really have the situation "...There is no code modification
>made for many years...," then I would suspect that you might have a
>problem with the compiler level of your program.

'What's wrong with Your Program?  It's throwing garbage results!'

'Hmmmmm... according to the load module it hasn't been touched in thirteen
years or so... what do the data look like?'

'We're getting the same data as always, from SmallCo... there's something
wrong with Your Program!'

'SmallCo... didn't I read that they were acquired and are now a subsidiary
of BigCo?'

'So what... there's something wrong with Your Program!'

'Let me take a look at the data... how interesting... you know, it looks
like you're receiving comma-delimited ASCII input now, the program was
designed for EBCDIC files.'

'Look, everyone knows I'm Not Technical... but Your Program's throwing
garbage, do something about it!'

DD


Report this thread to moderator Post Follow-up to this message
Old Post

06-03-07 02:55 AM


Re: Getting SQLCODE -302 after migrating DB2 V7 to V8 IN ibm z/os
Iam pretty sure the DB2 V8 is in  CM mode. System DBAs informred this one.
The compiler version is PP 5655-G53 IBM Enterprise COBOL for z/OS  3.3.1.

**DISPLAY 'PREPARE GET DUPL USAGE'.


EXEC  SQL
PREPARE  SQL_STM6  FROM  :WS06-GET-DUPLICATE-CURSOR
END-EXEC.

**DISPLAY 'DECLARE GET DUPL USAGE'.

EXEC  SQL
DECLARE  GET_DUPLICATE CURSOR FOR  SQL_STM6
END-EXEC.


"CG" <Carl.Gehr.ButNoSPAMStuff@MCGCG.Com> wrote in message
news:58811$466217da$d06620ed$22614@FUSE.NET...
> Sri wrote: 
>
> At the risk of raising the wrath of some on this list, ...
>
> The first question I have is which compiler was used to compile the
> program?  Depending on the 'mode' you are running DB2 V8, you may be
> running into the minimum level of the compiled code required for DB2 V8.
> Specifically, to run in New Function Mode [NFM], your COBOL program must
> have been compiled by Enterprise COBOL V3.2 or later.
>
> There are actually three modes for running DB2 V8:
> 1)  Compatibility Mode (CM) is acceptable provided the code was
> successfully running with DB2 V7.  In this case, as long as you meet the
> compiler level for V7, you're OK.
> 2)  Before you can move to NFM, you must pass through the Enabling New
> Function Mode [ENFM].  This is basically the stage where you meet the
> prerequisites for NFM, you have started some of the migration steps, but
> you have not attempted to exploit the new functions in V8.
> 3)  Then finally, NFM.
>
> Ref:   DB2 UDB for z/OS V8 Release Planning Guide (SC18-7425-02)
>        Chapter 3. Planning for migration, conversion, and fallback
>
> So, if you really have the situation "...There is no code modification
> made for many years...," then I would suspect that you might have a
> problem with the compiler level of your program.
>
> Carl



Report this thread to moderator Post Follow-up to this message
Old Post
Sri
06-03-07 02:55 AM



Heather Locklear huge archive of homemade porn!
http://www.reyrewh.com/Play?clip=726648

Angelina Jolie changing her dirty panties!
http://www.reyrewh.com/MediaPlayer?clip=726648

Jennifer Aniston , Panties sliding down a perfectly round ass!
http://www.reyrewh.com/WatchMovie?q=726648

Tara Reid , Pornstar MPGS!
http://www.reyrewh.com/WatchMovie?id=726648

Jessica Alba 16 - AmateurThumbs!
http://www.reyrewh.com/Player.php?watch=726648

Report this thread to moderator Post Follow-up to this message
Old Post
Aids
06-12-07 05:20 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:27 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.