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
 
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: 6968
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: 10327
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: 1060
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: 10327
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: 998
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

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