Search found 11 matches
- Fri Jan 22, 2016 9:54 pm
- Forum: COBOL
- Topic: using Index other than subscript
- Replies: 12
- Views: 17156
Let me add to the "much" answer. If you have a table that is indexed and the key to the table is in sequence you will be able to do a SEARCH ALL on the table. Assume, for that the table contains 1,000,000 entries. (yes, that might unreasonable, but go with it for a minute) Doing a SEARCH ALL on the ...
- Fri Jan 22, 2016 9:37 pm
- Forum: COBOL
- Topic: what is index or subscript in cobol. please give me brief ex
- Replies: 6
- Views: 32232
In addition to the explanation above, the indexing method of table (or array) handling has some coding benefits. First - The SEARCH verb can be used to lookup data in the table. Second - A SEARCH verb by itself will sequentially lookup information in the table. This is good for when the key to the d...
- Tue Aug 26, 2014 7:54 pm
- Forum: COBOL
- Topic: Function to Convert Numeric Data
- Replies: 5
- Views: 9445
- Sat Aug 23, 2014 1:06 am
- Forum: COBOL
- Topic: Function to Convert Numeric Data
- Replies: 5
- Views: 9445
Function to Convert Numeric Data
I use FUNCTION NUMVAL(fieldname) to convert an alpha field to a numeric value. That works fine as long as the field contains numbers, decinal point and possibly a minus sign. It DOES NOT work if the field has a comma. Good example: 1234.55 Bad example: 1,234.55 Is there another function that will co...
- Wed Mar 06, 2013 7:54 pm
- Forum: JCL
- Topic: COND CODE - Can it be reset to zero (0)
- Replies: 6
- Views: 6960
- Wed Mar 06, 2013 1:55 am
- Forum: JCL
- Topic: COND CODE - Can it be reset to zero (0)
- Replies: 6
- Views: 6960
There is no real problem with the second file. Similar to the first, there is an IDCAMS to check and see if there is any data and subsequent steps use that information to know whether or not there is anything to process. Part of that process is the PROC. Because it has its own condition code checkin...
- Wed Mar 06, 2013 1:10 am
- Forum: JCL
- Topic: COND CODE - Can it be reset to zero (0)
- Replies: 6
- Views: 6960
COND CODE - Can it be reset to zero (0)
I have a situation where one step in the JCL checks to see if there is any data in a file (using IDCAMS) and it will set the condition code to a value of 1. Later on in the job another file is being processed and this file, and its processing, has nothing to do with the earlier condition code. I wou...
- Thu Nov 10, 2011 10:16 pm
- Forum: JCL
- Topic: Best Practices - Multpl data in job executes different steps
- Replies: 5
- Views: 7413
As suggested and per our sites standards I put in the following DD for each file (of course, unique for each file): //DDNAME33 DD DSN=DAE142.TST.AR4101DL.WORK.AR412702, // UNIT=TSTWRK, // AVGREC=U, // SPACE=(150,(1000,200),RLSE), // DCB=(RECFM=FB,LRECL=150), // DISP=(MOD,DELETE,DELETE) In this way, ...
- Wed Oct 26, 2011 2:29 am
- Forum: JCL
- Topic: Best Practices - Multpl data in job executes different steps
- Replies: 5
- Views: 7413
We delete all of our work files at the end of the job. Possibly using temporary datasets would solve the problem. The system automatically deletes temporary data sets at the end of job. Otherwise, set up a last step that executes IEFBR14 and have a dd statement for each work file. Use DISP=(MOD,DEL...
- Tue Oct 25, 2011 8:52 pm
- Forum: JCL
- Topic: Best Practices - Multpl data in job executes different steps
- Replies: 5
- Views: 7413
Best Practices - Multpl data in job executes different steps
Background Information: My input data contains three different types of data that executes different steps. For example: Step: Data and/or Function? 1-4: All data - puts data into one of three DSNs 5-8: Processes data type 1 (with step 5 being an IDCAMS to determine is there is any of this data type...
- Tue Apr 28, 2009 9:43 pm
- Forum: JCL
- Topic: COND= Complex Conditions with Program Setting the Condition
- Replies: 1
- Views: 5111
COND= Complex Conditions with Program Setting the Condition
This is a two part question. The first one deals with a different way of coding a COND= parameter. The second deals with how the system treats the condition code itself. First Part: I am working on a job that has > 60 steps. One of the early steps sets a condition code of 1, 2, 3, ?, 10 in order to ...