MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem with ssa

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
neelamchalam
Beginner


Joined: 12 Nov 2003
Posts: 1
Topics: 1
Location: india

PostPosted: Wed Nov 12, 2003 9:22 am    Post subject: problem with ssa Reply with quote

pls suggest me how to write exact SSA for the following problem.
Thanks in advans,

Code:

05  X02X09                                                           
  10  KX02X09                                                         
    15  NWAT                           PS   6  K 666081                 
    15  DATE                            PS   8  K 79969075             
    15  XCT                              PS   3  K 0                     
  10  MONTH                           PS   7  2 INVALD X'F000000' 
  10  TAUX                              RDEFINES MONTH

The above one is segment structure i need to access, i am trying with one qualified SSA like following
Code:

  01  W-X02X09-QUAL-SSA.                                         
      05  FILLER                  PIC X(10)  VALUE 'X02X09  ( '.
      05  FILLER                  PIC X(08 )  VALUE ' NWAT  = '.   
      05  W-Y091- NWAT     COMP-3   PIC S9(06) VALUE  ZEROES.       
      05  FILLER                  PIC X(10)  VALUE 'D2FFE   = '. 
      05  W-DATE        COMP-3   PIC S9(08 ) VALUE  70068780.     
      05  FILLER                  PIC X(10)  VALUE 'CPTNO   = '. 
      05  W-XCT         COMP-3   PIC S9(03) VALUE  002.         
      05  FILLER                  PIC X      VALUE ')'.           

AS three key values are comp-3 fields, and key length is 17, but while i am issuing DLI calls i am not getting what exactu i need to get, in PCB also i given key as PIC S(17) COMP-3
_________________
nvchalam
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Nov 12, 2003 10:00 am    Post subject: Reply with quote

chalam,

What is the language used for definitions? It doesn't look like cobol. If I understand correctly , you want to select a record from the segment for a defined value.
Code:

  01  W-X02X09-QUAL-SSA.                                         
      05  FILLER                  PIC X(08 )  VALUE 'SEGNAME '. 
      05  FILLER                  PIC X(01)   VALUE '('.
      05  FILLER                  PIC X(08 )  VALUE 'FLDNAME '.                                    05  FILLER                  PIC X(02)   VALUE ' ='.
      05  SRCH-KEY                PIC S9(06) COMP-3 VALUE ZEROES.
      05  FILLER                  PIC X(01)   VALUE ')'.



now issue a call with GU to get the desired record

Code:

CALL 'CBLTDLI' USING FUNC-GU               
                     DATA-PCB1         
                     DATA-IO-AREA
                     W-X02X09-QUAL-SSA


Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group