×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

I can't write TS QUEUE of 32,000 bytes of lebgth

I can't write TS QUEUE of 32,000 bytes of lebgth

I can't write TS QUEUE of 32,000 bytes of lebgth

(OP)
CICS loud write TS QUEUEs of 32,000 bytes in length but the cobol compiler doesn' accept to have a work field with initial value of 32,000, eje:

02 TE-LENGTH  PIC S9(04) COMP VALUE +32000.

Can someone tell me what can I do to resolve this?

Thanks a lot

RE: I can't write TS QUEUE of 32,000 bytes of lebgth

Which version of the compiler are you using?

I just ran a test using "IBM ENTERPRISE COBOL FOR Z/OS  3.3.1" with the following results:

CODE

Program -
...
01  WS-QUEUE-LEN                PIC S9(4) COMP VALUE +32000.
...
    DISPLAY 'WS-QUEUE-LEN = ' WS-QUEUE-LEN.
...

Results -
WS-QUEUE-LEN = 32000

The CICS Application Programming Reference, by the way, contains the following caveat:

Quote:


 # In OS/VS COBOL and C/370, all LENGTH options must be specified.

 | When a CICS command offers the LENGTH option, it is generally expressed as
 | a signed halfword binary value.  This puts a theoretical upper limit of
 | 32 763 bytes on LENGTH.  In practice (depending on issues of
 | recoverability, function shipping, and so on) the achievable upper limit
 | varies from command to command, but is somewhat less than this theoretical
 | maximum.

 | Whatever the CICS command, to be on the safe side, do not let the LENGTH
 | you code exceed 24KB.

Ever onward,
jar

RE: I can't write TS QUEUE of 32,000 bytes of lebgth

Isn't there an "FLENGTH" option for the TS WRITEQ command?  If so, you should be able to use it with a fullword binary numeric field which should eliminate any potential overflow problems.

"Code what you mean,
 and mean what you code!
 But by all means post your code!"

Razalas

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login

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