MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Length of a string

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
badri5
Banned


Joined: 27 Jun 2006
Posts: 18
Topics: 16

PostPosted: Fri Sep 25, 2009 1:23 am    Post subject: Length of a string Reply with quote

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
View user's profile Send private message
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Fri Sep 25, 2009 2:17 am    Post subject: Reply with quote

the logic for what Question

If you want to keep those 2 characters...declare the field in the copy with a length of 19.
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Fri Sep 25, 2009 5:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group