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 

USER ABEND 4038

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
JOHNCWL
Beginner


Joined: 25 Feb 2004
Posts: 31
Topics: 16

PostPosted: Wed Feb 25, 2004 9:04 am    Post subject: USER ABEND 4038 Reply with quote

Hi,
I am using the below JCL for generating the DDLs for a database, its throwing user abend code 4038

//*JOBCARD
//*---------------------------------------------------
//*- JCL SUBMITTED FROM REXX
//*---------------------------------------------------
//GENSQL EXEC PGM=IKJEFT01,DYNAMNBR=100
//STEPLIB DD DISP=SHR,DSN=DSN610.ADB610.SADBLLIB
// DD DISP=SHR,DSN=DSN610.SDSNLOAD
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DBZ6)
RUN PROG(ADB2GEN) PLAN(ADB2GEN)
END
//SYSPRINT DD SYSOUT=*
//SQL DD DISP=SHR,DSN=JOHN.TEMP.REXX(TEST1)
//IN DD *
DB2SYS = 'DBZ6',
DB2ALOC = '',
DB2SERV = 'UGCZ6',
DB2AUTH = 'JOHN',
DB2REL = '610',
GENDB = 'Y',
GENTS = 'Y',
GENTABLE = 'Y',
GENVIEW = 'Y',
GENINDEX = 'Y',
GENSYN = 'Y',
GENALIAS = 'Y',
GENLABEL = 'Y',
GENCOMM = 'Y',
GENRELS = 'Y',
GENTRIG = 'Y',
GRANTDB = 'Y',
GRANTTS = 'Y',
GRANTTAB = 'Y',
GRANTVW = 'Y',
NEWDB = 'MOR1T01',
NEWTSSG = 'MOR1T01',
NEWIXSG = '',
NEWSQLID = '',
SPCALLOC = 'DEFINED',
COMMITFR = 'A',
DEFAULTS = 'K',
TGTDB2 = '710';
DB='MOR1T01', TS='', OWN='', TB='';
/*


Error details are as follows:

********************************* TOP OF DATA *********
IBM0121S ONCODE=21 The RECORD condition was raised because the length of the record variable was less than the
record length ('ONFILE'= SQL).
From compile unit ADB2GEN at entry point PUT_SQL at statement 14316 at compile unit offset +00052C3E at entry offset +00000472 at address 11576CF6.
'ERROR' condition was raised
Traceback of user routines:
Compile Unit Entry Statement CU offset Entry offset Address
ADB2GEN PUT_SQL 14316 +00052C3E +00000472 11576CF6
ADB2GEN GET_RUN_PARM 614 +00003C3C +0000231C 11527CF4
ADB2GEN ADB2GEN 263 +00000562 +0000055A 1152461A

and then throws CEEDUMP

Pls help me out
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Wed Feb 25, 2004 10:30 am    Post subject: Reply with quote

This error:
IBM0121S ONCODE=21 The RECORD condition was raised because the length of the record variable was less than the
record length ('ONFILE'= SQL).

indicates to me that your JOHN.TEMP.REXX file has the wrong record length (e.g. is it FB80 but should be VB255 or something?)
Back to top
View user's profile Send private message
JOHNCWL
Beginner


Joined: 25 Feb 2004
Posts: 31
Topics: 16

PostPosted: Thu Feb 26, 2004 5:33 am    Post subject: Reply with quote

Thanks!! it worked.

Wink
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 -> Job Control Language(JCL) 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