IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error while processing file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Thu May 28, 2009 2:16 pm
Reply with quote

Hi,

I have one file which has some records. I procesing that file on bases of some requirement. But when I am submitting my JCL i am getting fllowing error.
Code:

"RECORDING" was invalid.  Scanning was resumed at the next area "A" item, level-
next clause.                                                                   
                                                                               
Data-item "SYSIN-REC (NUMERIC INTEGER)" and record "SYSIN-REC (NUMERIC INTEGER)"
Movement of data may not occur at execution time.                               


File section for this is as:
Code:

FD SYSIN.                                     
                                               
    RECORDING MODE IS F                       
    BLOCK CONTAINS 0 RECORDS.                 
                                               
 01  SYSIN-REC                      PIC  9(03).


Please help. file is of LRECL 03.

Regards,
rupesh gupta
Back to top
View user's profile Send private message
sachin.mandaliya

New User


Joined: 17 Jan 2007
Posts: 24
Location: India

PostPosted: Thu May 28, 2009 2:34 pm
Reply with quote

Remove '.' after FD SYSIN and try again.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu May 28, 2009 2:43 pm
Reply with quote

so this
rupesh gullu wrote:
Hi Succor,

Thanks for the reply Its working fine.

Regards,
rupesh gupta


was not true in this thread ?

why did you open a new thread?

as Marso mentioned, you need to learn COBOL.
teaching you COBOL is not why anybody helps.
also,
you really need to change your ways.
Back to top
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Thu May 28, 2009 3:39 pm
Reply with quote

Hi Dick,

Sorry for that. Actually I used code which Succor gave and it worked fine .Then I made some minor change to it but it gave me error.

regards,
rupesh
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu May 28, 2009 3:55 pm
Reply with quote

rupesh,

For future reference:

most of the time
if something worked
and
then changes were made
and
then it didn't work,

more than likely, one (or more) of the changes was incorrect.

The first step in debugging is determining what is different.

Simply comparing the new to the old would have been a good start at determining the problem.
Back to top
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Thu May 28, 2009 5:20 pm
Reply with quote

Hi Dick,

Sure I will keep it in mind next time.

Also I was able to solve the problem.I was reading SYSIN into SYSIN-REC which was in FD section itself .I had to read it into WS-Section. and had to define another SYSIN-RECD. so it will be Read SYSIN into SYSIN-RECD.

Regards,
rupesh gupta
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Error when install DB2 DB2 2
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top