Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I really enjoy your site. You have a lot of helpful and friendly experts who contribute so willingly. Thank you for past (and future) technical advice..."

Geography

Where in the world do Tek-Tips members come from?

CICS Length Field Not Changing ValuesHelpful Member! 

averh2o (Programmer)
14 Jan 08 14:02
It doesn't seem that my length field is being changed when inputting data shorter than the output field on the screen.  What can I be doing wrong? Prior to this editing, the user has entered a key field which has been used to retrieve a record from the vsam file, formatted and sent to the screen.  Original length of field on BMS def is 30 and the length field shows 30, regardless of how many characters are entered to change the field.
  
Helpful Member!  Glenn9999 (Programmer)
14 Jan 08 17:54
If the value comes from a COBOL program and is sent to the screen, likely the value is being padded with spaces.  Consequently, there will always be a length of 30.

Rather than look at the L value of BMS, you would probably do better to find the length yourself.  Or before you send the value to screen, move low-values to the screen data area.
averh2o (Programmer)
15 Jan 08 9:20
You're right, it is Cobol.  If the user hits eof after modifying the field the length field does indicate the correct length of the new input.  If not, user just enters new data and leaves remaining characters on screen, the length field is set to the length of the original output field length sent to the screen.  I thought the length field would indicate the # characters input by the user regardless of what the screen output field held.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close