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 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: 6968
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: 6968
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 FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm

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