Skip to main content

Posts

Showing posts from June, 2010

Match_merge_logic

MATCH - MERGE     LOGIC   Match Merge logic is extensively used in COBOL programs to compare the data in two sequential files effectively. Only pre-requisite to for using this logic is, all input files to be in Sorted Order   Problem : I have 2 Sequential files File 1   and File 2 .                  If Record exists in both the files then write data into FILE A                                If Record exists only in File1 and not in File2 then write data into FILE B                  If Record exists only in File2 and not in File1 then write data into FILE C   Solution: The effective way of solvi ng above problem is, by using Match Merge Logic. Only pre-requisite to for using this logic is, all input files to be in Sorted Order.  First step sort I/P file   Explanation of Logic : Below listed are I/P and Output files data for say RollNo   File 1                   File 2                         FILE A                     FILE B                              FILE C 10          

Inter_View_Qns2

  1.     Where do we use TSQs                  Data in TSQ is stored as VSAM files a.     Pageup and Pagedown Logic b.     For writing Log Details (as we cant use Displays in CICS)   2.     How do we access the TSQ using a Key field a.     Using RIDFIELD   3.     What is Sync Point and why is called as 2 Phase Commit a.     Sync point is issued to save the data till that LUW. b.     This is called as 2 Phase commit as , first it saves the data pertaining to File, Db2 then CICS data. 4.     I would like to generate only Input field (along with A, F, L) and not Output files in my Symbolic Map, how to achieve this ? a.     Use Mode = IN   , in BMS macro 5.     How do you position your cursor on Map. a.     Code   IC, in Attribute field of BMS macro of respective field b.     Move -1 to Length field of respective field c.     Using SEND MAP    CURSOR ( 100 ) 6.     How do you test Physical Map layout in CICS region. a.     Use CECI send Map () Mapset() 7.     What’s the debugging tool