Length of a string
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Application Programming

#1: Length of a string Author: badri5 PostPosted: Fri Sep 25, 2009 1:23 am
    —
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.

#2:  Author: acevedoLocation: Europe PostPosted: Fri Sep 25, 2009 2:17 am
    —
the logic for what Question

If you want to keep those 2 characters...declare the field in the copy with a length of 19.

#3:  Author: Anuj DhawanLocation: Mumbai,India PostPosted: Fri Sep 25, 2009 5:44 am
    —
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...



MVSFORUMS.com -> Application Programming


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group