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 

COBOL2 Compiler Option - NUMPROC

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
rrv
Beginner


Joined: 01 Nov 2004
Posts: 19
Topics: 6

PostPosted: Tue Nov 09, 2004 2:08 pm    Post subject: COBOL2 Compiler Option - NUMPROC Reply with quote

Hi There

I was wondering if someone could answer the following query regarding one of the COBOL compiler options (NUMPROC) and its implications vis-a-vis S0C7/ASRA abends in CICS.

Consider the following piece of code:
Code:

01 WS-EXCP-MSG PIC  X(33) VALUE SPACES.

01 WS-TABLE-1  OCCURS 8 TIMES INDEXED BY X-IDX-1.
    03 WS-EXCP-SW PIC  9(01).

01 WS-TABLE-2 OCCURS 8 TIMES INDEXED BY X-IDX-2.
    03 WS-TABLE-ENTRY PIC  X(33).

SET X-IDX-2 TO WS-EXCP-SW (X-IDX-1).
MOVE WS-TABLE-ENTRY(X-IDX-2) TO WS-EXCP-MSG.

What is the effect of NUMPROC(PFD) and NUMPROC(NOPFD) on the above code if all occurrences of WS-EXCP-SW were to contain X'00' initially? I understand that PFD results in increased efficiency, but does that mean data exceptions are not handled at run time?

Many Thanks
Ram
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Tue Nov 09, 2004 3:45 pm    Post subject: Reply with quote

rrv,

When the NUMPROC(NOPFD) compiler option is in effect, the compiler accepts any valid sign configuration.

Check this link for a detailed explanation of NUMPROC compiler option

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/2.4.34?DT=20020923143836

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rrv
Beginner


Joined: 01 Nov 2004
Posts: 19
Topics: 6

PostPosted: Thu Nov 11, 2004 2:36 pm    Post subject: Reply with quote

Kolusu

Thanks for your response. That explains it all.

Regards
Ram
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group