IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Why LENGTH is always pic s9(4) comp.


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Tue Dec 15, 2009 1:56 pm
Reply with quote

Hi

Plz let me know why the length we define in CICS command is always defined in PIC S9(4) COMP.

Thanks & Regards
Shreejita
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Dec 15, 2009 2:13 pm
Reply with quote

Because IBM decided that a binary half-word should contain the length and, as a result, because the fine manual says so.

Garry.
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Tue Dec 15, 2009 2:20 pm
Reply with quote

Thanks Gary,

There should be some reason for IBM to do so. Why not s9(8) comp?

Thanks
Shreejita
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 15, 2009 2:22 pm
Reply with quote

Or no length field at all?
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Tue Dec 15, 2009 2:26 pm
Reply with quote

Is this the answer...????
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Dec 15, 2009 2:46 pm
Reply with quote

Quote:
Is this the answer...????


Yes, long ago in the days of AMODE(24) it wasn't considered necessary or desirable to exceed half-word length. These days, CICS also provides an FLENGTH field that provides a fullword - S 9(8) COMP) - where half-word is insufficient. The LENGTH remains as was for backward compatibility.

Garry.
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Tue Dec 15, 2009 2:54 pm
Reply with quote

Thanks Gary,

Really appreciate your answer and understood ..

Thanks & best wishes.
Shreejita
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
Search our Forums:

Back to Top