Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Why LENGTH is always pic s9(4) comp.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Why LENGTH is always pic s9(4) comp.
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

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Dec 15, 2009 2:13 pm    Post subject:
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    Post subject: Reply to: Why LENGTH is always pic s9(4) comp.
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 15, 2009 2:22 pm    Post subject:
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    Post subject: Reply to: Why LENGTH is always pic s9(4) comp.
Reply with quote

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

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Dec 15, 2009 2:46 pm    Post subject:
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    Post subject: Reply to: Why LENGTH is always pic s9(4) comp.
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us