qualiefied SSA issues

IMS DB database, DL/I commands etc

Moderator: Moderator Group

Post Reply
sumit_sr71
Member
Posts: 3
Joined: Tue Sep 18, 2012 3:37 pm

qualiefied SSA issues

Post by sumit_sr71 » Tue Sep 18, 2012 4:00 pm

hi all,

i have followin doubts related to Qualified SSA.
1.Can we search in mulitiple segement of db mentioned in PCB using qualification statement in single Call. :shock:
2.i am trying to use this multiple qualification SSA bt its not working and program is throwing AK(Invalid field name in call) status code , i hve checked and rechechecked this, i think there is format issue with this.

Code: Select all

         10 CARD-NUMBER               PIC X(19) VALUE             
                                      '*******************'.      
  *      10 WS-CDSTAT                 PIC X(1)  VALUE 'I'.        
      05  WS-SDWCACA-SSA-QUALIFIED.                               
         10  WS-SDWCACA-SEGNAME           PIC X(08) VALUE         
                                           'SDWCACA '.            
         10  WS-SDWCACA-CMD-CODES         PIC X(04) VALUE '*---'. 
         10  WS-SDWCACA-LEFT-PARENTH      PIC X(01) VALUE '('.    
         10  WS-SDWCACA-IMS-FIELD         PIC X(08) VALUE         
                                           'CARKEY  '.            
         10  WS-SDWCACA-OPERATOR1         PIC X(02) VALUE 'GE'.   
         10  WS-SDWCACA-KEY-VAL           PIC X(19) VALUE SPACES. 
  *      10  WS-SSA-OPERATOR              PIC X(01) VALUE '&'.    
  *      10  WS-CDSTAT-OP                 PIC X(08) VALUE         
  *                                        'CDSTAT  '.            
  *      10  WS-SDWCACA-OPERATOR2         PIC X(02) VALUE 'EQ'.   
  *      10  WS-CDSTAT-VAL                PIC X(01) VALUE SPACES. 
         10  WS-SDWCACA-RIGHT-PARENTH     PIC X(01) VALUE ')'.   
here card number is the key.i have Moved value later in the program.jst b4 the call.

Then i run the same code with single Qualification statement after commenting out multiple statemet, it was running fine.
Please help me with this.

Thanks!
Sumit

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue Sep 18, 2012 7:27 pm

I've coded your post to preserve the alignment.

What CALL do you issue?
Regards,
Anuj

sumit_sr71
Member
Posts: 3
Joined: Tue Sep 18, 2012 3:37 pm

Post by sumit_sr71 » Tue Sep 18, 2012 7:32 pm

Thanks Anuj!



simple 'CBLTDLI' format with required function ,PCB mask,recieving area,SSA defination

and before this i hve to use SYNC call so tht control goes back to DLI

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Wed Sep 19, 2012 12:46 am

Does your keyboard have a problem with the 'a' key? ou seem to be missing quite a few in your posts. Also, nothing on the mainframe is ever 'thrown'. Operators may throw tantrums but the machine and software do not throw anything.
Regards
Nic

sumit_sr71
Member
Posts: 3
Joined: Tue Sep 18, 2012 3:37 pm

Post by sumit_sr71 » Thu Sep 20, 2012 10:24 am

Nic

i really 'a''A' should not cause a any problem.

I displayed status code of the call which showing AK(Invalid field name in call) .

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Thu Sep 20, 2012 12:35 pm

If it is just stick fingers then no probs - I suffer from that myself - but short-cut SMS style wording is 'frowned upon'. Why? Well, in my case, because I do not use it, not even on my phone. Therefore it makes it more difficult to read and understand the post and that is before getting through the language barrier and into the meat of the real problem.
Regards
Nic

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others