Friday, September 21, 2007

CICS FAQ's

Q. What is the function of the CICS translator?
A. The CICS translator converts the EXEC CICS commands into call statements for a specific programming language. There are CICS translators for Assembler, COBOL, and PL/1.

Q. What does “Pseudo Conversational” mean?
A. The programming technique in which the task will not wait for the end-user replies on the terminal. Terminating the task every time the application needs a response from the user and specifying the next transaction to be started when the end user press any attention key (Enter, PF1 through PF24, PA1,PA2 and Clear) is pseudo-conversational processing.

Q. How can you start a CICS transaction other than by keying the Transaction ID at the terminal?
A. - By coding an EXEC CICS START in the application program
- By coding the trans id and a trigger level on the DCT table
- By coding the trans id in the EXEC CICS RETURN command
- By associating an attention key with the Program Control Table
- By embedding the TRANSID in the first four positions of a screen sent to the terminal.
- By using the Program List Table

Q. What is the purpose of the Program List Table?
A. The Program List Table records the set of applications programs that will be executed automatically at CICS start-up time.

Q. What are the differences between and EXEC CICS XCTL and an EXEC CICS START command?
A. The XCTL command transfer control to another application (having the same Transaction ID), while the START command initiates a new transaction ID (therefore a new task number). The XCTL continues task on the same terminal. START can initiate a task on another terminal.

Q. What are the differences between an EXEC CICS XCTL and an EXEC CICS LINK command?
A. The XCTL command transfer control to an application program at the same logical level (do not expect to control back), while the LINK command passes control to an application program at the next logical level and expects control back.

Q. What happens to resources supplied to a transaction when an XCTL command is executed?
A. With an XCTL, the working storage and the procedure division of the program issuing the XCTL are released. The I/O areas, the GETMAIN areas, and the chained Linkage Section areas (Commarea from a higher level) remain. All existing locks and queues also remain in effect. With a LINK, however, program storage is also saved, since the transaction expects to return and use it again.

Q. What CICS command do you need to obtain the user logon-id?
A. You must code EXEC CICS ASSIGN with the OPERID option.

Q. What is a resident program?
A. A program or map loaded into the CICS nucleus so that it is kept permanently in main storage and not deleted when CICS goes “Short On Storage”.

Q. What is some of the information available in the EIB area?
A. - The cursor position in the map
- Transaction ID
- Terminal ID
- Task Number
- Length of communication area
- Current date and time
- Attention identifier

Q. What information can be obtained from the EIBRCODE?
A. The EIBRCODE tells the application program if the last CICS command was executed successfully and, if not, why not.

Q. What is the effect of including the TRANSID in the EXEC CICS RETURN command?
A. The next time the end user presses an attention key, CICS will start the transaction specified in the TRANSID option.

Q. What is the function of the EXEC CICS HANDLE CONDITION command?
A. To specify the paragraph or program label to which control is to be passed if the “handle condition” occurs.

Q. How many conditions can you include in a single HANDLE CONDITION command?
A. No more than 16 in a single handle condition. If you need more, then you must code another HANDLE CONDITION command.

Q. What is the EXEC CICS HANDLE ABEND?
A. It allows the establishing of an exit so cleanup processing can be done in the event of abnormal task termination.

Q. What is the difference between EXEC CICS HANDLE CONDITION and an EXEC CICS IGNORE command?
A. A HANDLE CONDITION command creates a “go-to” environment. An IGNORE command does not create a go-to environment; instead, it gives control back to the next sequential instruction following the command causing the condition. They are opposites.
Q. What happens when a CICS command contains the NOHANDLE option?
A. No action is going to be taken for any exceptional conditional occurring during the execution of this command. The abnormal condition that occurred will be ignored even if an EXEC CICS HANDLE condition exist. It has the same effect as the EXEC CICS IGNORE condition except that it will not cancel the previous HANDLE CONDITION for any other command.

Q. What happens when a CICS command contains the RESP option?
A. No action is going to be taken for any exceptional condition occurring during the execution of this command. When an abnormal condition occurs, the CICS response code is field in the program work area and can be checked later (usually at the next sequential instruction).

Q. When a task suspends all the handle conditions via the PUSH command, how does the task reactivate all the handle conditions?
A. By coding an EXEC CICS POP HANDLE command.

Q. What is the difference between the INTO and the SET option in the EXEC CICS RECEIVE MAP command?
A. The INTO option moves the information in the TIOA into the reserved specified area, while the SET option simply returns the address of the TIOA to the specified BLL cell or “address-of” a linkage-section.

Q. What are the three ways available for a program to position the cursor on the screen?
A. 1. Static positioning. Code the insert cursor (IC) in the DFHMDF BMS macro.
2. Relative positioning. Code the CURSOR option with a value relative to zero(position 1,1 is zero) .
3. Symbolic positioning. Move high values or -1 to the field length in the symbolic map(and code CURSOR on the SEND command).

Q. What is Modified Data Tag?
A. The MDT is a 1-bit attribute character of a BMS field. When it is set on, CICS will transmit the data contained in the associated map field.

Q. Name three ways the Modified Data Tag can be set on?
A. The Modified Data Tag can be set on:
1. When the user enters data into the field.
2. When the application program moves DFHBMFSE to the attribute character.
3. By defining it in the BMS macro definition.

Q. What is a mapset?
A. A mapset is a collection of BMS maps link-edited together.

Q. What is the function of DFHMDF BMS macro?
A. The DFHMDF macro defines fields, literal, and characteristics of a field.
Q. What is the function of the Terminal Control Table(TCT)?
A. The TCT defines the characteristics of each terminal with which CICS can communicate.

Q. What does it mean when EIBCALEN is equal to zeros?
A. When the length of the communication area (EIBCALEN) is equal to zeros, it means that no data was passed to the application.

Q. How can the fact that EIBCALEN is equal to zeros be of use to an application programmer?
A. When working in a pseudo-conversational mode, EIBCALEN can be checked if it is equal to zero. A programmer can use this condition as a way of determining first time usage(of the program).

Q. Which CICS system program is responsible for handling automatic task initialization?
A. The Transient Data Program(TDP).

Q. What are the differences between Temporary Storage Queue (TSQ) and Transient Data Queue (TDQ).?
A. - Temporary Storage Queue names are dynamically defined in the application program, while TDQs must first be defined in the DCT (Destination Control Table).
- When a TDQ contains certain amount of records (Trigger level), a CICS transaction can be started automatically. This does not happen when using a TSQ.
TDQ(extra partition) may be used by batch application; TSQ cannot be accessed in batch. The Transient Data Queue is actually a QSAM file.
-You may update an existing item in a TSQ. A record in a TDQ cannot be
updated.
- Records in TSQ can be read randomly. The TDQ can be read only sequentially.
- Records in Temporary Storage can be read more than once, while records stored in Temporary Data Queues cannot. With TDQs it is “one read” only.

Q. In an on-line environment, how can you prevent more than one user from accessing the same Transient Data Queue at the same time?
A. By issuing an EXEC CICS ENQ against the resource. When processing is completed, a DEQ should be executed.

Q. When an application is invoked via the EXEC CICS START command with the from option, how does the application gain access to the common area?
A. An EXEC CICS RETRIEVE command will access the common area.

Q. The DFHCOMMAREA is used to pass information from one application to another. What are some other ways that this function can be accomplished?
A. You can also pass information in the following ways.
- By using a temporary storage queue
- By using an intrapartition TDQ
- By using the Task Work Area
- By using TCTUA
- Through a file

Q. How do you define Task Work Area?
A. By defining it on the PCT (the Program Control Table)

Q. What information do you get when an EXEC CICS STARTCODE is issued?
A. You will be able to determine if the application was started by (1) a transient data trigger level(QD), (2) a START command (S,SD), (3) user (U) or terminal input (TD), or (4) Distributed Program Link(D,DS).

Q. Which CICS command must be issued by the application program in order to gain access to the Common Work Area(CWA)?
A. EXEC CICS ADDRESS with CWA option.

Q. In which CICS table would you specify the length of the TASK WORK AREA (TWA)?
A. In the Program Control Table(PCT).

Q. What is a deadlock?
A. Deadlock (also known as a “deadly embrace”) occurs when a task is waiting for a resource held by another task which, in turn, is waiting for a resources held by the first task.

Q. Explain the term Transaction routing.
A. Transaction routing is a CICS mode of intercommunication which allows a terminal connected to local CICS to execute another transaction owned by a remote CICS.

Q. Explain the term Function Request Shipping?
A. Function request shipping is one of the CICS modes of intercommunication which allows an application program in a local CICS to access resources owned by a remote CICS.

Q,. Explain the term “MRO” (Multi Region Operation)?
A. MRO is the mechanism by which different CICS address spaces with in the same CPU can communicate and share resources.







The following is the check list to write a CICS online program:

1. If the program is main program (which has to be kicked off using a TRANSID) then the transaction id (TRANSID) has to defined in the Program Control Table(PCT). If the program is a called program (invoked by using XCTL or LINK command) then there is no need to define a transaction id in PCT.

2. Any program with CICS interface has to be defined in the Program Processing Table (PPT).

3. Files used in the program should be defined in the File Control Table. (FCT).

4. If the program is using Task Work Area then the TWA length has to be defined in the Program Control Table(PCT). This is done at the time of defining a transaction in PCT.

5. It is always better to code LINKAGE SECTION in the program.

6. Once the program coding is completed the component has to be made active. (Component status will be ACTIVE once it is compiled successfully).

7. Promote the package (means copying the load module from staging library to test library).

8. Once the program is successfully promoted to test region, NEW copy has to be issued. This can be done by using CEMT transaction. This is CEM1 for region 1 and CEM2 for region 2 and so on. The new copy is issued to reinitialize the Program Processing Table so that the new load module’s address is kept in the PPT.

9. Now the program is ready for testing.

43 comments:

  1. This is an excellent Q & A list. Thank you!

    ReplyDelete
  2. Thanks for the post and please continue posting similar topics.

    You can check out my blog for CICS Interview Questions and Answers

    CICS Interview Questions and Answers

    Thanks
    Joya

    ReplyDelete
  3. Greetings from Florida! I'm bored to tears at work so I decided to check out your blog on my iphone during lunch break. I enjoy the information you provide here and can't wait to take a
    look when I get home. I'm surprised at how fast your blog loaded on my cell phone .. I'm not even using WIFI, just 3G .
    . Anyways, good site!
    Also see my web page: how to download movies

    ReplyDelete
  4. Hello everyone, it's my first visit at this web site, and article is really fruitful in favor of me, keep up posting these articles or reviews.
    my site :: cigarettes online

    ReplyDelete
  5. My partner and I absolutely love your blog and find many of your post's to be precisely what I'm looking for.
    Would you offer guest writers to write content for you personally?
    I wouldn't mind writing a post or elaborating on a lot of the subjects you write regarding here. Again, awesome weblog!
    Here is my blog post acm9.In

    ReplyDelete
  6. WOW just what I was looking for. Came here by searching for how to get rid of
    cellulite
    My weblog ; called acne free

    ReplyDelete
  7. When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added
    I get four emails with the same comment. Is there any way you
    can remove people from that service? Many thanks!
    Feel free to surf my web site making money with

    ReplyDelete
  8. What's up colleagues, fastidious paragraph and nice arguments commented at this place, I am genuinely enjoying by these.
    Feel free to surf my blog post : recycle computers make money

    ReplyDelete
  9. I rarely leave a response, however after
    reading through a lot of responses here "CICS FAQ's". I
    actually do have 2 questions for you if it's allright. Could it be just me or does it seem like a few of the responses come across like they are written by brain dead people? :-P And, if you are writing on additional online sites, I would like to keep up with you. Would you post a list of the complete urls of all your social sites like your twitter feed, Facebook page or linkedin profile?
    My weblog - watch nfl games online

    ReplyDelete
  10. I have learn some just right stuff here. Definitely price bookmarking for revisiting.
    I surprise how much effort you put to make such a wonderful informative web site.
    My web-site ; skin bleaching cream

    ReplyDelete
  11. Hi there would you mind letting me know which web host you're utilizing? I've loaded your blog in 3 completely different internet browsers and
    I must say this blog loads a lot quicker then most.
    Can you suggest a good hosting provider at a honest price?
    Thank you, I appreciate it!
    my web page - http://boligityrkia.net/eiendom-bodrum/

    ReplyDelete
  12. This info is worth everyone's attention. When can I find out more?
    Also see my webpage :: http://fieldofmud.com

    ReplyDelete
  13. Hi there, for all time i used to check blog posts here in
    the early hours in the morning, as i love to gain knowledge of more and more.
    My homepage ... how to lose man boobs fast

    ReplyDelete
  14. Hello to all, how is everything, I think every one is getting more from this web page, and your views are pleasant for new people.
    Feel free to surf my web page : tattoo removal cream

    ReplyDelete
  15. I would like to thank you for the efforts you have put in writing this website.
    I really hope to see the same high-grade content from you later on as well.
    In truth, your creative writing abilities
    has encouraged me to get my very own blog now ;)
    Also see my website: how to lose man boobs

    ReplyDelete
  16. hello there and thank you for your information – I have
    certainly picked up anything new from right here.
    I did however expertise several technical points using this
    site, as I experienced to reload the site many times previous
    to I could get it to load properly. I had been wondering if your web
    host is OK? Not that I am complaining, but sluggish loading instances times
    will often affect your placement in google and could
    damage your high-quality score if advertising and marketing with Adwords.

    Anyway I'm adding this RSS to my email and can look out for much more of your respective interesting content. Make sure you update this again very soon.
    My homepage : Natural Health Supplements

    ReplyDelete
  17. Unquestionably imagine that that you stated.
    Your favourite justification appeared to be at the net the easiest factor to understand of.
    I say to you, I definitely get annoyed even as people think
    about concerns that they just do not recognise about. You managed to hit the nail upon the highest and also outlined out the entire thing with no need side-effects
    , people can take a signal. Will likely be back to
    get more. Thank you
    Also visit my web blog - coloured contacts Australia

    ReplyDelete
  18. Heya i'm for the first time here. I found this board and I find It really useful & it helped me out much. I hope to give something back and aid others like you aided me.
    Also visit my homepage www.bertholdo.com.br

    ReplyDelete
  19. I'd like to find out more? I'd love to find out more details.
    My page > eziepage.com

    ReplyDelete
  20. Hey! I know this is kinda off topic however , I'd figured I'd ask.
    Would you be interested in trading links or maybe
    guest writing a blog post or vice-versa? My website addresses a lot of the same subjects as yours and I feel we could greatly benefit from each other.
    If you are interested feel free to send me an e-mail. I look forward
    to hearing from you! Awesome blog by the way!
    Also see my webpage :: try to

    ReplyDelete
  21. Asking questions are actually pleasant thing if you are not understanding something entirely, but this
    article offers good understanding yet.
    my website - how to get rid of pimples

    ReplyDelete
  22. What's up friends, how is all, and what you would like to say concerning this piece of writing, in my view its in fact amazing designed for me.
    Also visit my website ... http://www.noarsrafting.com

    ReplyDelete
  23. Howdy! I could have sworn I've been to your blog before but after browsing through some of the posts I realized it's new to me.
    Regardless, I'm certainly pleased I came across it and I'll be bookmarking it and checking back frequently!


    Visit my web-site :: freemoneyforplumbers.com
    My website - haare dünner

    ReplyDelete
  24. I love your blog.. very nice colors & theme. Did you make this website yourself or did
    you hire someone to do it for you? Plz answer back as I'm looking to design my own blog and would like to find out where u got this from. cheers
    Feel free to surf my blog - http://doublehelixtwin.net/status/index.php/youngsprui

    ReplyDelete
  25. Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! However, how
    can we communicate?

    Here is my website; http://potesismico.funvisis.gob.ve/wiki/index.php?title=Usuario:UPYChong

    ReplyDelete
  26. Thank you for the good writeup. It if truth be told was once a leisure account it.

    Glance complex to far delivered agreeable from you! By the way, how could we communicate?


    Also visit my web blog - calcium Supplements

    ReplyDelete
  27. Very shortly this web page will be famous among all
    blogging visitors, due to it's fastidious content

    Stop by my web page - the term online Shopping pakistan is not a brand new concept in the Contemporary pakistani market

    ReplyDelete
  28. I delight in, cause I discovered just what I was taking a look for.

    You have ended my four day lengthy hunt! God Bless you man.
    Have a nice day. Bye

    Look at my webpage :: seo myths

    ReplyDelete
  29. Having read this I thought it was rather informative.
    I appreciate you taking the time and effort to put this content together.
    I once again find myself spending way too much time both reading and commenting.
    But so what, it was still worth it!

    Here is my webpage; http://www.nordic-land.com/

    ReplyDelete
  30. I've learn a few excellent stuff here. Definitely worth bookmarking for revisiting. I wonder how so much attempt you set to create any such magnificent informative website.

    my blog ... innovative marketing

    ReplyDelete
  31. When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four emails with
    the same comment. Is there any way you can remove people from that service?
    Many thanks!

    Feel free to surf to my weblog; business checks

    ReplyDelete
  32. Why viewers still make use of to read news papers when in this technological world the whole thing is
    available on web?

    Feel free to surf to my website :: options binary

    ReplyDelete
  33. Ahaa, its nice dialogue about this article at this place at this web site, I have read
    all that, so now me also commenting at this place.

    Look into my webpage - binary forex options

    ReplyDelete
  34. Oh my goodness! Impressive article dude! Many thanks, However I am encountering troubles with
    your RSS. I don't understand why I cannot subscribe to it. Is there anyone else having similar RSS problems? Anyone who knows the solution can you kindly respond? Thanx!!

    Here is my web-site :: pod coffee maker

    ReplyDelete
  35. Ultimate Colonnadе: Thіs ѕite hаs а that саn Ameliorate the
    сreаtive thinking of childrеn. My Experiencеs with Еverquest Since I Feаture played Evеrquest, Plаnes has
    something foг eνery striρes of
    gamer fгom the hardcoгe simulatіon cοmmanding
    οfficer to thе eveгyԁay checking on thе
    plane conglomeratе oncе a wеekend.


    Ηave a look аt my webѕite game

    ReplyDelete
  36. Nice details about mainframe materials.

    ReplyDelete
  37. I likе the valuable іnfoгmatіon you prоvіԁe
    on youг aгtіcles. I'll bookmark your blog and take a look at once more right here regularly. I am slightly certain I will learn many new stuff proper here! Good luck for the next!

    Also visit my web-site ... raspberry ketone

    ReplyDelete
  38. But there are other ways a student of English can learn the language online.

    Grammar and vocabulary quizzes generally consist of a sentence with a missing word.
    Fewer�employees�are�necessary�to�work�CNC�devices�when�incomparison�to�personally�managed�devices.



    My page: fitslimhappy.com

    ReplyDelete
  39. Yοu can cеrtainly ѕee your skills withіn
    thе worκ you ωrite. Thе world hoреѕ for
    even more passіonatе writers lіke уou who aren't afraid to mention how they believe. At all times follow your heart.

    Feel free to visit my homepage vistaprint coupon code

    ReplyDelete
  40. Hi this is somewhat of off topic but I was wondering if blogs use WYSIWYG
    editors or if you have to manually code with HTML.
    I'm starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

    my weblog ... calories walking calculator

    ReplyDelete
  41. chek this for mainframe related stufs
    mframes.blogspot.com

    ReplyDelete
  42. Hi.. Check the mainframe forum
    http://mframes.blogspot.com

    ReplyDelete