Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
RESP2 code -502

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
pshongal

New User


Joined: 14 Jun 2012
Posts: 94
Location: India

PostPosted: Mon May 28, 2018 10:58 am    Post subject: RESP2 code -502
Reply with quote

I am getting value as -502 in RESP2 field and 16 in RESP while reading the file.

Code:

EXEC        CICS                                         
            READ  DATASET   (SWA-XXX-DSID)           
                      INTO         (XXX-RECORD)             
                      LENGTH    (SWA-XXX-RECORD-LENGTH) 
                      RIDFLD    (SWA-XXX-KEY)           
                      GTEQ                               
                      RESP      (L77-RESP)               
                      RESP2     (L77-RESP2)             
END-EXEC.                                               


16 is related to INVREQ, but what's -502?
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2059
Location: UK

PostPosted: Mon May 28, 2018 1:10 pm    Post subject: Reply to: RESP2 code -502
Reply with quote

Where have you looked for the answer?
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 94
Location: India

PostPosted: Mon May 28, 2018 1:51 pm    Post subject:
Reply with quote

Googled and found some codes in below site. Also searched in this forum, But could not find -502

https://www.ibm.com/support/knowledgecenter/en/SSGMGV_3.1.0/com.ibm.cics.ts31.doc/dfhp7/dfhp75b.htm
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10492
Location: italy

PostPosted: Mon May 28, 2018 6:02 pm    Post subject: Reply to: RESP2 code -502
Reply with quote

OK... I will bite
the cics api reference syntax for the read is
EXEC CICS READ FILE(...)
...
as per
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_4.2.0/com.ibm.cics.ts.applicationprogramming.doc/commands/dfhp4_read.html


the only reference I found for
EXEC CICS READ DATASET
is in a microfocus environment


but apart that You should learn how to format properly
EIBRESP and and EIBRESP2
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8378
Location: Dubuque, Iowa, USA

PostPosted: Mon May 28, 2018 7:59 pm    Post subject: Reply to: RESP2 code -502
Reply with quote

The CICS Language Reference manual lists valid RESP2 values for an EXEC CICS READ that returns INVREQ RESP as ranging from 20 to 59. Your -502 is way outside those ranges, so the possibilities are:
- you are doing your EXEC CICS READ on a non-system z machine (using Microfocus for example), in which case you need to consult their documentation
- you are incorrectly formatting RESP2 and getting the invalid value that way
- you are mis-interpreting the actual value to be -502

You will need to do additional investigation to figure out what the actual value is and what it tells you about your EXEC CICS READ command.
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 94
Location: India

PostPosted: Tue May 29, 2018 8:08 am    Post subject:
Reply with quote

Thanks for your insights in to this.

We are executing this transaction in system Z machine itself and I am seeing the value by debugging using Xpeditor.

Looks like I need to check the internal documentation to see if they are formatting the value in some way.
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 94
Location: India

PostPosted: Tue May 29, 2018 12:32 pm    Post subject:
Reply with quote

Finally it is resolved

Internally DB2 code was moved to RESP2. So -502 was DB2 error.

Issue was with END-BROWSE, after start browse, end-browse was not executed due to some wrong condition. Which was corrected and issue got resolved.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Invoke WebService failing with respon... Ashishpanpaliya CICS 1 Thu Aug 09, 2018 3:14 pm
This topic is locked: you cannot edit posts or make replies. IO-PCB status code AL srinianusuya IMS DB/DC 1 Mon Aug 06, 2018 10:26 am
No new posts SQL Code 302 while executing stored ... Ashishpanpaliya DB2 8 Wed Aug 01, 2018 7:54 pm
No new posts sql code 331 while calling Stored Pro... Ashishpanpaliya DB2 5 Wed Aug 01, 2018 7:06 pm
No new posts Code char set conversion from IBM-420... thelefthandofdarkness IBM Tools 4 Thu Jul 26, 2018 3:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us