MAINFRAME - TIP OF THE DAY :
Q. If there is a situation, where we need to code more than 255 steps in a JOB?
A. We need to split jcl into two jcls , at the end of the first jcl check the condition code and initiate the second jcl.
Programmers Voted for below topics. Please Vote for good Posts.
Thank You! for your feedback. Connecting to the server. Please Wait...
(COMP is a generic word, and though there are defaults, COMP can be defined for a site as pack-decimal, binary etc...)
I prefer to use the words DISPLAY, PACKED-DECIMAL, BINARY, FLOATING-POINT (long and short). I have had little use for floating point as I have always worked aroung banks.
A program usually INPUTs some data, does something with the data, and OUTPUTs some data. My main consideration is what format is the INPUT data and what format must the OUTPUT data have. Converting numerical data from one format to another costs CPU; I go to great effort to circumvent numerical conversion - when it is not needed. numerical combination processes (add, sub, mult, div) are most effecient when performed on PACKED-DECIMAL (IBM mainframe anyway) - I usually define accumulation tables in PACKED-DECIMAL.
If you do happen to have a situation where everything is BINARY in and BINARY out with a totals/activity report, I will define the accumulation table as BINARY and the convert for the generation of the report.
So, in summary: I would avoid conversions where possible. _________________ Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum