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 while processing file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Error while processing file
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    Post subject: Reply to: Error while processing file
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: 6967
Location: porcelain throne

PostPosted: Thu May 28, 2009 2:43 pm    Post subject:
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    Post subject: Reply to: Error while processing file
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: 6967
Location: porcelain throne

PostPosted: Thu May 28, 2009 3:55 pm    Post subject:
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    Post subject: Reply to: Error while processing file
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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