|
|
| Author |
Message |
harpreet9
New User
Joined: 24 Oct 2006 Posts: 11 Location: delhi
|
|
|
|
Hi,
Just need a little help. I came across this question thru someone.
Suppose I have a file and that has jut 1 record which read and then written and the record at the time of writing is PIC 9(7). Now at the time of writing it if i give the value 123456 within quotes, will the program abend or not?
Acc to me it will abend.
Please let me know.
bye |
|
| Back to top |
|
 |
References
|
Posted: Wed Jun 04, 2008 3:06 pm Post subject: Re: Will this program abend or not? |
 |
|
|
 |
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 169 Location: Bangalore
|
|
|
|
| Quote: |
| the record at the time of writing is PIC 9(7) |
I guess the PICTURE clause of the record should be the same through out the program.
Please explain your problem bit more... |
|
| Back to top |
|
 |
harpreet9
New User
Joined: 24 Oct 2006 Posts: 11 Location: delhi
|
|
|
|
| yup its same thruout the program its just that at the time of defining the variable in the input file i have not set the value. i am setting the value in the procedure division only and the value is "123456". |
|
| Back to top |
|
 |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1004 Location: Chennai - India
|
|
|
|
harpreet,
| Quote: |
i am setting the value in the procedure division only and the value is "123456".
|
Are you using the VALUE clause for setting the value. If yes, it will lead to compilation error.
Write a small program, test and confirm it. |
|
| Back to top |
|
 |
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 169 Location: Bangalore
|
|
|
|
| please post your code |
|
| Back to top |
|
 |
harpreet9
New User
Joined: 24 Oct 2006 Posts: 11 Location: delhi
|
|
|
|
hey Aaru Vedam
thanks...its done
thank u |
|
| Back to top |
|
 |
Anuj D.
Senior Member
Joined: 22 Apr 2006 Posts: 1696 Location: Mumbai, India
|
|
|
|
Hi,
Please share the solution used. |
|
| Back to top |
|
 |
|
|