View previous topic :: View next topic |
Author |
Message |
badri5 Banned
Joined: 27 Jun 2006 Posts: 18 Topics: 16
|
Posted: Fri Sep 25, 2009 1:23 am Post subject: Length of a string |
|
|
Hi,
I have one Input file which is 80 characters long.
one variable namely ws-var1 which is 17 characters long in the input file
Rest 63 characters are spaces. if i enter 19 characters in the input file as per the program logic it is accepting first 17 characters and the remaining 2 characters is getting truncated .could you tell me how to write the logic for this. |
|
Back to top |
|
|
acevedo Beginner
Joined: 03 Dec 2002 Posts: 127 Topics: 0 Location: Europe
|
Posted: Fri Sep 25, 2009 2:17 am Post subject: |
|
|
the logic for what
If you want to keep those 2 characters...declare the field in the copy with a length of 19. |
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Fri Sep 25, 2009 5:44 am Post subject: |
|
|
Suggest you show us what you've coded and what output you get from that code. Please show the input as well. Then, some one will around with a better suggestion... _________________ Regards,
Anuj |
|
Back to top |
|
|
|
|