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
 

 

IMS DC- Clarification needed IO-LL and IO-ZZ fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
cgk_106

New User


Joined: 22 Dec 2006
Posts: 21
Location: chennai

PostPosted: Wed Jun 20, 2007 7:24 am    Post subject: IMS DC- Clarification needed IO-LL and IO-ZZ fields
Reply with quote

Hi,

Could we use more than 1000 characters in the input output segment .While running my program some numeric values randomly populated in the IO-LL and IO-ZZ field hence i am getting IO-PCB-status as 'XC'. Kindly clarify my doubt
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Jun 20, 2007 11:01 am    Post subject:
Reply with quote

IO LL and IO ZZ are reserved for IMS.
Make sure your program is not writing into this fields.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Jun 21, 2007 4:06 pm    Post subject:
Reply with quote

In addition to what Devzee explained: the IO-LL for outputmessages is filled by the application when the format is of type 3 in which case one also finishes the message with X'3F' for speed. The LL-field you leave in peace like Devzee told indeed.
Back to top
View user's profile Send private message
cgk_106

New User


Joined: 22 Dec 2006
Posts: 21
Location: chennai

PostPosted: Thu Jun 21, 2007 7:05 pm    Post subject:
Reply with quote

Hi Devzee and Bitneuker,

I am still not able to solve my problem.let me explain it in more detail. I have declared io-LL and io-ZZ field as s9(03) comp value zeroes in the layout and i am not at all moving any values into the fields throughout my program but my output segment is nearly contains say 1400(more than thousand characters) charcters because of this i am getting error. i run the same program with less than thousand its working properly.

how i can use more than thousand characters. can we have io-zz and io-ll fields as s9(04) comp value zeroes.

Kindly clarify my doubt.
Back to top
View user's profile Send private message
Karthi-acp

New User


Joined: 21 Apr 2007
Posts: 5
Location: India

PostPosted: Thu Jun 21, 2007 10:36 pm    Post subject:
Reply with quote

Gopal,
When you get the status code XC means the ZZ field is not populated with zeroes. Just before giving a call to ims please this field. It will be non zero.. This programmer error please check you logic
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 22, 2007 1:07 am    Post subject:
Reply with quote

Hello,

You do realize that you cannot move 1400 to a s9(3) comp-3 field and expect it to work. That field will hold up to 999 and no more. That is not an IMS issue, but the way COBOL is designed to work.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri Jun 22, 2007 1:47 am    Post subject:
Reply with quote

Right: I will give you an example in PL/I. Watch the LL and ZZ fields and the length of the based message; it's 1924 characters so your 1400 should be no problem. You should have no problem. I will even later on post the format of the message for you. In PL/I the statement: MID_EO = '' means all fields in the structure are initiated so ZZ is set to binary zeroes AND LEFT ALONE. ZZ is a fixed field so you can't lengthen it up because it's owned by IMS. For more info follow the firs link in my signature and search for MESSAGE.

Code:
DCL 1 IOAREA CHAR(1924);                   
DCL 1 MID_E0 UNAL BASED(ADDR(IOAREA)),     
      3 LL          BIN FIXED(31),         
      3 ZZ          BIT(16),               
      3 TC          CHAR(09),             
      3 PFX         CHAR(08),             
      3 CURSOR      CHAR(04),             
      3 PAWO        CHAR(08),             
      3 SYSSPA,                           
        5 SPLITKZ   CHAR(1),               
        5 SECOK     CHAR(1),               
        5 MODUS     CHAR(8),               
        5 PAGE#     CHAR(3),               
        5 MASKE     CHAR(5),               
        5 TCOK      CHAR(1),               
      3 SPA         CHAR(50),             
      3 FEHLER      CHAR(79),             
      3 MASKE1      CHAR(05),             
      3 MASKE2      CHAR(05),             
      3 FMASKE      CHAR(05),             
      3 FFUNKT      CHAR(01),             
      3 DATA        CHAR(1725);           

MID_E0 = '';

LL       = 294;


If your ZZ-field doesn't contains binary zoroes you may have a wrong redefine or unprotected index causing the message to be overwritten.
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 -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am


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