View previous topic :: View next topic
|
Author |
Message |
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
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 |
|
|
sachin.mandaliya
New User
Joined: 17 Jan 2007 Posts: 24 Location: India
|
|
|
|
Remove '.' after FD SYSIN and try again. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
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 |
|
|
|