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
 

 

Error- length of the record variable less than record length

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
kumar_jalluri

New User


Joined: 02 Jun 2005
Posts: 24
Location: PUNE

PostPosted: Wed Jun 02, 2010 3:14 pm    Post subject: Error- length of the record variable less than record length
Reply with quote

Hi

I have an output file of length 69. The structure is as follows..(Just few from the copy book)

1 RGP0203 BASED(PREMPTR),
2 APAGTNO FIXED DEC(7),
2 APBIT8A,
3 APBUYOUT BIT(1),
3 APSRVFEE BIT(1),
3 APBIFLAG BIT(1),
3 APPDFLAG BIT(1),


Now I changed the layout of this copy book. APAGTNO FIXED DEC(7) to APAGTNO CHAR(7). So the lenght of the new copy book is 72. Also I changed the output file length in JCL to 72. But when I run the JCL I am getting the following error.

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


Eventhough I changed the length correctly to 72, I don't know why I am getting this error. Please give ur suggestions.
Back to top
View user's profile Send private message

Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Wed Jun 02, 2010 4:14 pm    Post subject:
Reply with quote

Kumar,
There may be some other changes to the copybook. You can check the exact record length using file aid or file manager.
Back to top
View user's profile Send private message
kumar_jalluri

New User


Joined: 02 Jun 2005
Posts: 24
Location: PUNE

PostPosted: Wed Jun 02, 2010 9:08 pm    Post subject:
Reply with quote

There are no other changes to this copy book..
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jun 02, 2010 9:19 pm    Post subject:
Reply with quote

Quote:
Eventhough I changed the length correctly to 72, I don't know why I am getting this error


well, the OPs-Sys thinks the record that your are generating is larger than 72.

have you checked in the compile listing that the associated record with the write is actually 72?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10234
Location: italy

PostPosted: Wed Jun 02, 2010 9:45 pm    Post subject: Reply to: Error- length of the record variable less than rec
Reply with quote

check the listing for the aggregate length
You will have to specify AGGREGATE as a compile parm or a process option ( IIRC )

check the manual for the exact spelling
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1005
Location: Oostende, Belgium

PostPosted: Thu Jun 03, 2010 1:54 am    Post subject:
Reply with quote

Let's guess:

Code:
BASED(PREMPTR)


is your solution...
Back to top
View user's profile Send private message
kumar_jalluri

New User


Joined: 02 Jun 2005
Posts: 24
Location: PUNE

PostPosted: Thu Jun 03, 2010 2:28 pm    Post subject:
Reply with quote

Hi Prino,

Could you please let me know in more detail about your suggested solution.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10234
Location: italy

PostPosted: Thu Jun 03, 2010 6:08 pm    Post subject: Reply to: Error- length of the record variable less than rec
Reply with quote

show where the pointer points to,
show how the pointed area is defined,
show the statement used for the write
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Jun 03, 2010 7:01 pm    Post subject:
Reply with quote

Have you defined the LRECL in the Environment attributes?

Garry.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm


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