Search This Blog

Thursday, April 19, 2012

How to handle clear key in CICS

In CICS the clear key can be handled by the EIBAID.While entering into a transaction we can evaluate the EIBAID and if the EIBAID value is DFHCLEAR Then we can simply throw the map with its values. IF we  ever try to recieve a map after pressing the clear key then it will issue a AEIP abend, as the clear key clears the cics terminal amd while recieving the map it recieves a null value. So it issues an AEIP abend.

The Sample code is :-

EVALUATE EIBTRNID
WHEN TRANS

EVALUATE EIBAID

WHEN DFHCLEAR
PERFORM 100-SEND-PARA
END-EVALUATE
END-EVALUATE.
 
 
 
The send para is:-
 
100-SEND-PARA.



EXEC CICS SEND
MAP(POA)
MAPSET(TCHM121)
FROM(POAO)
ERASE
FREEKB
CURSOR
END-EXEC .

Thursday, April 5, 2012

Mainframe Tips

  • How to list last 10 datasets used in tso region


 goto ispf 3.4 option, on the top menubar select reflist and select option 1 and you will find the last datasets used



  • Auto-indentation
When writing code in certain programming languages, indentation is an important part of the style to ensure that the code is more readable. You can set up the vi editor to automatically indent to adhere to a language-specific style when necessary. You use autoindent to turn automatic indenting on or off



  • Switch case
You can switch the case of the alpha character underneath your cursor in vi the tilde key (~). Doing so shifts from lowercase to uppercase and vice versa. Holding down the key rolls over each character in the line, flipping the case of any alpha characters the editor comes across. You can enter a numeric character prior to the tilde to denote how many alpha characters you want to change.



  • Section save
You can save sections of a file you're currently editing by entering :start,endw file, where start is the first line in the current file from which you want to save, end is the last line that you want to save to, w denotes that you want to write to another file (or overwrite an existing file), and file is the name of the file to which you want to save the specified section. You can use the $ notation for the last line to specify to the end of the file and double greater-than symbols (>>) after the w to indicate that you want to append to rather than overwrite the file