Wednesday, April 27, 2011

JCL FAQs & Answers Series 01

1. What is primary allocation for a dataset?
The space allocated when the dataset is first created.
Secondary allocation is done when more space is required than what has already been allocated.

2.How many extents are possible for a sequential file ? For a VSAM file ?
16 extents on a volume for a sequential file and 123 for a VSAM file.

3. What does a disposition of (NEW,CATLG,KEEP) mean?
That this is a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset would not be catalogued and we would need to supply the vol. ser the next time we refer to it.

4. How do you access a file that had a disposition of KEEP?
Need to supply volume serial no. VOL=SER=xxxx.

5. How do you create a temporary dataset? Where will you use them?
Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in DSN=&&TEMP.
We use them to carry the output of one step to another step in the same job. The dataset will not be retained once the job completes.

6. How do you restart a proc from a particular step?
In job card, specify RESTART=procstep.stepname
where procstep = name of the jcl step that invoked the proc
and stepname = name of the proc step where you want execution to start

7. A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?
Provide the override on the EXEC stmt in the JCL as follows:
//STEP001 EXEC procname,COND.stepname=value
All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.

8. How do you override a specific DDNAME/SYSIN in PROC from a JCL?
// DSN=...

9. What is NOTCAT 2 ?
This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = ‘xxxx.yyyy’ and u try to create one with disp new,catlg, you would get this error. the program open and write would go through and at the end of the step the system would try to put it in the system catalog. at this point since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data set and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.

10. What is a S0C4 error ?
Storage violation error - can be due to various reasons. e.g.: READING a file that is not open, invalid address referenced due to subscript error.

11. What are SD37, SB37, SE37 abends?
All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified. SE37 - Max. of 16 extents already allocated.

12. What is S322 abend ?
Indicates a time out abend. Your program has taken more CPU time than the default limit for the job class. Could indicate an infinite loop.

13. Why do you want to specify the REGION parameter in a JCL step?
To override the REGION defined at the JOB card level.
REGION specifies the max region size. REGION=0K or 0M or omitting REGION means no limit will be applied.

14. What does the TIME parameter signify ? What does TIME=1440 mean ?
TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time. TIME=1440 means no CPU time limit is to be applied to this step.

15. What is COND=EVEN ?
Means execute this step even if any of the previous steps, terminated abnormally.

16. What is COND=ONLY ?
Means execute this step only if any of the previous steps, terminated abnormally.

17. How do you check the syntax of a JCL without running it?
TYPERUN=SCAN on the JOB card or use JSCAN.

18. What does IEBGENER do?
Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be decribed using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.

19. How do you send the output of a COBOL program to a member of a PDS?
Code the DSN as pds(member) with a DISP of SHR. The disp applies to the pds and not to a specific member.

20. I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?
Multiple jobs are submitted (as many jobs as the number of JOB cards).

21. I have a COBOL program that ACCEPTs some input data. How do you code the JCL statment for this? ( How do you code instream data in a JCL? )

//SYSIN DD*
input data
input data
/*

22. Can you code instream data in a PROC ?
No.

23. How do you overcome this limitation ?
One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.

24. How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
To run a non DB2 program,

//STEP001 EXEC PGM=MYPROG
To run a DB2 program,
//STEP001 EXEC PGM=IKJEFT01

//SYSTSIN DD *
DSN SYSTEM(....)
RUN PROGRAM(MYPROG)
PLAN(.....) LIB(....) PARMS(...)
/*

25. What is STEPLIB, JOBLIB? What is it used for?
Specifies that the private library (or libraries) specified should be searched before the default system libraries in order to locate a program to be executed.
STEPLIB applies only to the particular step, JOBLIB to all steps in the job.

26. What is order of searching of the libraries in a JCL?
First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the linklist.

27. What happens if both JOBLIB & STEPLIB is specified ?
JOBLIB is ignored.

28. When you specify mutiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
The library with the largest block size should be the first one.

29. How to change default proclib ?
//ABCD JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)

30. What are the differences between JES2 & JES3 ?
JES3 allocates datasets for all the steps before the job is scheduled. In JES2, allocation of datasets required by a step are done only just before the step executes.

MQ Series : Overview in brief

MQSeries implements a store-and-forward protocol to ensure the safe
delivery of messages between applications.
As with electronic mail, the individual messages that may be part of a
transaction, travel through a network on a store-and-forward basis. If a
link between nodes fails, the message is kept until the link is restored, or
the operator or program redirects the message.
An MQSeries message consists of control information and application data.


Message descriptor :
The control information is defined in a message descriptor structure (MQMD).
MQMD contains such things as:
The type of the message
An identifier for the message
The priority for delivery of the message
If you are asking a question, you may include in the message descriptor, the
name of the queue on which you want to receive the reply.


Queue manager
A queue manager is a system program that provides queuing services to
applications.To an application, each
queue manager is identified by a connection handle (Hconn).

Correlation identifier
To help the requester to associate the message replies with its original request,an application can set a correlation identifier field in the descriptor of each message.Programs should copy the message identifier of the request message into the correlation identifier field of their reply messages.

Request-Reply message Linking
If you want to link your reply message with your request message, there are two options:
You can give your application the responsibility of ensuring that it puts
information into the reply message that relates to the request message.
You can use the report field in the message descriptor of your request
message to specify the content of the MsgId and CorrelId fields of the
reply message.
You can request that either the MsgId or the CorrelId of the original message
is to be copied into the CorrelId field of the reply message (the default
action is to copy MsgId).
You can request that either a new MsgId is generated for the reply message,
or that the MsgId of the original message is to be copied into the MsgId
field of the reply message (the default action is to generate a new message
identifier).

Types of message
There are four types of message defined by MQSeries:
Datagram
Request
Reply
Report
Each type of message is identified by an MQMT_* value.


MsgDeliverySequence and Message Priority
The MsgDeliverySequence attribute of the queue determines whether messages on
the queue are stored in FIFO (first in, first out) sequence, or in FIFO within priority sequence. If this attribute is set to MQMDS_PRIORITY, messages are enqueued with the priority specified in the Priority field of their message descriptors; but if it is set to MQMDS_FIFO, messages are enqueued with the default priority of the queue.

Group identifier
The group identifier is usually generated by the queue manager when the first
message of a group is put onto a queue. The MsgSeqNumber field identifies the position of the message within the group and the Offset field identifies the segments within the message.

Cluster
A cluster is a network of queue managers that are logically associated in some way.
In a traditional MQSeries network using distributed queuing, every queue
manager is independent. If one queue manager needs to send messages to another
it must have defined
a transmission queue,
a channel to the remote queue manager, and
a remote queue definition for every queue to which it wants to send messages.

Client
An MQSeries client is an independently installable component of an MQSeries
product. It allows you to run MQSeries applications, by means of a
communications protocol, to interact with one or more Message Queue Interface
(MQI) servers on other platforms and to connect to their queue managers.

Shared queues
MQSeries allows local queues to be shared by a group of queue
managers, giving improved throughput and availability. Such queues are called
shared queues, and the queue managers form a queue-sharing group, which can
process messages on the same shared queues.

Syncpointing
You can use the syncpointing facilities provided by MQSeries or your operating system to ensure that your data remains consistent with other resources.

Persistence
You can use the persistence feature of MQSeries messages to
assure the delivery of important messages.
The queue manager preserves all persistent messages, recovering them
when necessary from the MQSeries log files, when it is restarted.
Note that messages on shared queues cannot be made persistent.

Synchronous request and reply messages
This implies that you set a timeout period for the reply to answer your request, and if you do not receive the reply within that period, it is treated as an error.

Messages Waiting
A program that is serving a queue can await messages by:
Polling: Making periodic calls on the queue to see whether a message has
arrived.
Waiting until either a message arrives, or a specified time interval expires
Setting a signal so that the program is informed when a message arrives.

Context information
Context information is used for associating messages with the user who generated them, and for identifying the application that generated the message. Such information is useful for security, accounting, auditing, and problem determination.

Message triggering
MQSeries triggering enables a program to be started automatically when messages arrive on a queue.
You can set trigger conditions on a queue so that a program is
started to process that queue:
Every time a message arrives on the queue
When the first message arrives on the queue
When the number of messages on the queue reaches a predefined number

MaxMsgLength
In MQSeries, the MaxMsgLength attribute of the queue manager is fixed
at 100 MB and the MaxMsgLength attribute of the queue defaults to 4 MB
(4 194 304 bytes) which you can amend up to 100 MB if required. However, the limit is 63 KB when using shared queues accessed by queue managers in a queue-sharing group.

Tuesday, April 5, 2011

Ardh Satya : The Existential Crisis

This poetry has been one of my favourites along with the film which I saw
aged 14 then.

Theme poem Ardh Satya by Dilip Chitre (Hindi)

Chakravyuh mein ghusne se pehle,
kaun tha mein aur kaisa tha,
yeh mujhe yaad hi na rahega.
Chakravyuh mein ghusne ke baad,
mere aur chakravyuh ke beech,
sirf ek jaanleva nikat’ta thi,
iska mujhe pata hi na chalega.
Chakravyuh se nikalne ke baad,
main mukt ho jaoon bhale hi,
phir bhi chakravyuh ki rachna mein
farq hi na padega.
Marun ya maarun,
maara jaoon ya jaan se maardun.
iska faisla kabhi na ho paayega.
Soya hua aadmi jab
neend se uthkar chalna shuru karta hai,
tab sapnon ka sansar use,
dobara dikh hi na paayega.
Us roshni mein jo nirnay ki roshni hai
sab kuchh s’maan hoga kya?
Ek palde mein napunsakta,
ek palde mein paurush,
aur theek taraazu ke kaante par
ardh satya.

English translation
Before entering the circle of deceit,
who I was, and what I was,
I would not remember.
After entering the circle of deceit,
(there was) between me and the circle,
only a deathly intimacy
that I never realised.
After leaving the circle of deceit,
even if I am set free,
the design of the circle of deceit,
will hardly be different.
Whether I kill, or die,
Am killed, or kill (the other)
these questions will never be decided.
When a sleeping man
awakes and steps forth,
then the world of dreams
may never be seen again (by him).
In that, the light of Decision,
will everything be level ?
On one tray (of a balance) is Impotence,
and on the other is Manhood,
and exactly at the needle point,
a half-truth.

Sunscreen Wisdom

I go through this wisdom quite often these days.
I find it always ahead of its time.
Here it goes:

Ladies and Gentlemen of the class of ’11
If I could offer you only one tip for the future, sunscreen would be it.
The long term benefits of sunscreen have been proved by scientists
whereas the rest of my advice has no basis more reliable
than my own meandering experience…


I will dispense this advice now.


Enjoy the power and beauty of your youth;

oh nevermind; you will not understand the power and beauty
of your youth until they have faded.
But trust me, in 20 years you’ll look back at photos of yourself
and recall in a way you can’t grasp now how much possibility
lay before you and how fabulous you really looked….

You’re not as fat as you imagine.

Don’t worry about the future; or worry,

but know that worrying is as effective as trying to solve an algebra
equation by chewing bubblegum. The real troubles in your life are
apt to be things that never crossed your worried mind;
the kind that blindside you at 4pm on some idle Tuesday.

Do one thing everyday that scares you

Sing

Don’t be reckless with other people’s hearts, don’t put up with
people who are reckless with yours.

Floss

Don’t waste your time on jealousy;
sometimes you’re ahead, sometimes you’re behind…
the race is long, and in the end, it’s only with
yourself.

Remember the compliments you receive, forget the insults;
if you succeed in doing this, tell me how.


Keep your old love letters, throw away your old bank statements.

Stretch


Don’t feel guilty if you don’t know what you want to do with your life…
the most interesting people I know didn’t know at 22 what they
wanted to do with their lives, some of the most interesting
40 year olds I know still don’t.


Get plenty of calcium.

Be kind to your knees, you’ll miss them when they’re gone.

Maybe you’ll marry, maybe you won’t,
maybe you’ll have children,maybe you won’t,
maybe you’ll divorce at 40, maybe you’ll dance the funky chicken on
your 75th wedding anniversary…

what ever you do, don’t congratulate yourself too much
or berate yourself either – your choices are half chance,
so are everybody else’s.

Enjoy your body,
use it every way you can…don’t be afraid of it,
or what other people think of it, it’s the greatest instrument
you’ll ever own..


Dance…
even if you have nowhere to do it but in your own living room.


Read the directions, even if you don’t follow them.
Do NOT read beauty magazines, they will only make you feel ugly.


Get to know your parents, you never know when they’ll be gone for good.
Be nice to your siblings; they are the best link to your past and the
people most likely to stick with you in the future.


Understand that friends come and go,but for the precious few you
should hold on.

Work hard to bridge the gaps in geography and lifestyle because
the older you get, the more you need the people you
knew when you were young.


Live in New York City once, but leave before it makes you hard;
live in Northern California once, but leave before it makes you soft.


Travel.


Accept certain inalienable truths,
prices will rise,
politicians will philander,
you too will get old,
and when you do you’ll fantasize that when you were young
prices were reasonable,
politicians were noble and
children respected their elders.


Respect your elders.


Don’t expect anyone else to support you. Maybe you have a trust fund,
maybe you have a wealthy spouse; but you never know when either one
might run out.


Don’t mess too much with your hair, or by the time you're 40,
it will look 85.



Be careful whose advice you buy, but, be patient with those who
supply it. Advice is a form of nostalgia, dispensing it is a way of
fishing the past from the disposal, wiping it off, painting over the
ugly parts and recycling it for more than it’s worth.



But trust me on the sunscreen…


< Taken/adapted from Baz Luhrmann's iconic words>

Wednesday, March 23, 2011

Refrigerators Pricelist - 3Door

TYPE Whirlpool Price
3 Door 330 Elt 3D Protton BlackRs. 29510
3 Door 330 Elt 3D Protton Rs. 28580
3 Door 330 Deluxe 3D Protton Black Rs. 28430
3 Door 330 Deluxe 3D Protton Rs. 27500
3 Door 300 Elt 3D Protton BlackRs. 26370
3 Door 300 Elt 3D Protton Rs. 25440
3 Door 300 Deluxe 3D Protton Black Rs. 25340
3 Door 300 Deluxe 3D Protton Rs. 24410



Samsung
Bottom RL41WCPS -358L 40500
Freezer Samsung RS20CRPS5-549L49500
Samsung RS20NRPS-510 47700

Hitachi
3 Door R-S37SVND-438 48990
3 Door R-S31SVND-366 42000
3 Door R-26SVND-306 33500
2 Door R-Z300AND7K30024,990

Wednesday, January 5, 2011

Best Tax Saving Mutual Funds in India

Best Tax Planning Mutual Funds
As per Returns of Last two Years are as follows:
I would personally recommend the following Order:
#1. Canara Robecco Equity Tax Saver,
#2. HDFC Tax Saver,
#3. Fidelty Tax Advantage and
#4. ICICI Prudential Tax Plan

Please Invest in only 1 Fund per year and not more as it gets really difficult to keep track of all funds in case you are going to invest in some Fund or the other every Year for Tax saving.


Till date I have Invested in Reliance, Sundaram BNP Paribas, Kotak and SBI Magnum MFs for Tax Saving.
For complete and un biased opinion on Mutual Funds I suggest one should consider the following site:
www.valueresearchonline.com

Happy Investing and have a great Year ahead!

Monday, December 27, 2010

2010 : Looking back

2010 was an eventful year for me..financially there were a couple of big decisions I made which would impact the next 2-5 years of my Life, to say the least.

Of financial Nature:
#1:
Under persistent pressure from my family, I gave into their desires and signed on the dotted line...
Hollaa...I booked a Flat worth more than ***** times the annual compensation
of a respectable PL. Thia was in February this year. Its a township and I will be "delivered" the 15 floor flat after 2 and a half years!!!
However, ther is something I did to my liking:

I booked it on 11th Floor, hill view. Sweet!

Not sure how I would manage the Loan though. Any ideas, Brutus?

#2.
I did something which was due for 2 years now.
I booked a 4 wheeler right before the finish line of 2010. In December end.
That scraps off my half year's compensation roughly.
But its worth it I guess.

The car is eye popping ...absolute Looker and grey.
Will get it by end of Jan 2011.

Not sure how I will pay for this as well!


#3.
I purchased some neat Cane Furniture for Bedroom.



I think I got a great deal from a roadside vendor.
Its for less than a decade of INRs and slightly more than Pancham Da's number!

#4
Tricked into purchasing useless MFs by my a Banker who was assigned to my case
by her supervisor. Also bought some long term bonds for tax savings.
Thanks Pranav Da for Infra Bonds.I am sure he can mange a few more of such
premises for tax exemption in 2011.

..I will stop before I further elaborate on many other conquests of Big Bazaar and D Marts which I managed in my weekly forays.

#5:
Lost substantial amount in equities.
Though I am still invested in them but the stock instrument is stuck like an FD.

Non Financial - Professional events:
#1.
Ahem.. I have managed a Visa for a country which is generally considered comparatively difficulty to acquire.
Its basically a work permit for a couple of years in the country.
It gives anyone freedom to seek employment after arrival.
Can't get the damn office to reimburse it though.

Might put it to some use later.


#2: Gymming: Did make use of official time and facilities.He He.

Things which should have reached a closure albeit they didn't:
#1: ******** ...ahem.
#2: GMAT : Didn't take this year.Should have.
#3: Fine Arts/ and Photography: Avenues that have been on the periphery far too long.
#4:On Air and Under/Over water Antics: Still planning!
#5:Goa, Rishikesh,Kerala and Laddakh: Someday.Someway.Together.. MLTR comes alive.


That's it folks! Will jot down 2011 plans sooner than later.
Cheers.