Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DSNTIAR return code 8

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
prasun dhara

New User


Joined: 01 Mar 2008
Posts: 49
Location: kolkata

PostPosted: Tue Jun 10, 2014 7:02 pm    Post subject: DSNTIAR return code 8
Reply with quote

To format SQLCA we are using dsntiar utility but getting return code 8. Google says ..return code 8 means "error record length is not between 72 and 240 "
Can anyone please explain when this error comes ?
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1653
Location: NY,USA

PostPosted: Tue Jun 10, 2014 7:55 pm    Post subject:
Reply with quote

A little more Google/forum search could give you the answer for the error.

http://ibmmainframes.com/about32378.html

Please see if that helps or post your variable declarations for this.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jun 11, 2014 4:56 pm    Post subject:
Reply with quote

DSNTIAR expects the SQLCA to be in a certain format. If your application modifies the SQLCA format before you call DSNTIAR, the results, as IBM says, are unpredictable. So first check that.

Second, in your program, you should define a message area something like this:

Code:
         01  ERR-MESSAGE.
                 02  ERR-LENGTH   PIC S9(4)  COMP VALUE +720.
                 02  ERR-TEXT  PIC X(72)  OCCURS 10 TIMES
                                            INDEXED BY ERR-INDEX.
         77  ERR-TEXT-LENGTH      PIC S9(9)  COMP VALUE +72.

This assumes - you want an area for up to 10 lines of length 72. With this in mind , you should define an area of 720 bytes, plus a 2-byte area that specifies the length of the message output area. If your program does not comply with these, well you've a trouble.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us