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
 

 

please help me in resolving PL\1 run time error maxcc=20

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

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Fri Mar 28, 2008 12:31 pm    Post subject: please help me in resolving PL\1 run time error maxcc=20
Reply with quote

Hi,

while running below PL\1 pgm i am getting run time error can any body hepl me out in resolving this error.

PGM:

[img]SEQREAD:PROCEDURE OPTIONS(MAIN);
DCL INPUT1 FILE INPUT RECORD ENV(F RECSIZE(80));
DCL INPUT_REC CHAR(80);
DCL INPUT_COUNT DECIMAL (10) INIT(0);
OPEN FILE(INPUT1);
ON ENDFILE(INPUT1) GO TO EOJ;
READ FILE(INPUT1) INTO(INPUT_RECORD);
PUT LIST (INPUT_RECORD);

EOJ: CLOSE FILE(INPUT1);
PUT LIST('INPUT-RECORD COUNT==>', INPUT_COUNT);
END SEQREAD; [/img]


Runjcl:

[img]//job card
//STEP1 EXEC PGM=SEQREAD
//STEPLIB DD DSN=LOADMODULE-DATASET-NAME,DISP=SHR
//INPUT1 DD DSN=INPUT-FILE(REC LENGTH=80,REC FORMATE=F),DISP=SHR
//SYSPRINT DD SYSOUT=* [/img]


Error mes:
[img]
IBM121I 'ONCODE'=0001 'RECORD' CONDITION RAISED
LENGTH OF RECORD VARIABLE LESS THAN RECORD LENGTH ('ONFILE'= INPUT1)
AT OFFSET +0000CC IN PROCEDURE WITH ENTRY SEQREAD [/img]

Thank in advance,
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Fri Mar 28, 2008 2:25 pm    Post subject:
Reply with quote

Please change the source line of this,
Code:
READ FILE(INPUT1) INTO(INPUT_RECORD);

as
Code:
READ FILE(INPUT1) INTO(INPUT_REC);

Please use code tag for better readability...
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Fri Mar 28, 2008 2:45 pm    Post subject:
Reply with quote

i am new to PL/1 .its taking implicit declaration for input_record so it was not giving complilation error ....

thanks a lot... gnanas
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 2 Thu Jan 19, 2017 1:31 am
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm


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