Search found 732 matches

by William Collins
Thu Dec 24, 2015 8:54 pm
Forum: COBOL
Topic: Sample Vulnerable COBOL code
Replies: 10
Views: 10048

What do you mean by vulnerable code?
by William Collins
Fri Dec 18, 2015 4:29 pm
Forum: COBOL
Topic: Left justified alphanumeric to right justified numeric
Replies: 1
Views: 4728

It is not considered cool to cross-post the forums at the same time.
by William Collins
Tue Dec 15, 2015 4:13 am
Forum: DFSORT , ICETOOL & Utilities
Topic: removing duplicates from a group
Replies: 13
Views: 15664

At last.

What is the maximum number of detail records? LRECL and RECFM?

Is this a once-off (data fix) or a regulat task (if yes, why?).
by William Collins
Mon Dec 14, 2015 12:26 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: removing duplicates from a group
Replies: 13
Views: 15664

OK, but SORT has no support for colour-recognition. How is SORT supposed to know the group is duplicate? Note, this is the same question, you provided nothing with this "cute" answer.
by William Collins
Fri Dec 11, 2015 9:49 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: removing duplicates from a group
Replies: 13
Views: 15664

How do you know it is duplicate?
by William Collins
Fri Dec 04, 2015 3:24 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: SORT card needed to exclude record set
Replies: 18
Views: 19848

You have SyncSORT, which does not have NOSEQCK, so just remove that.
by William Collins
Mon Nov 30, 2015 5:34 pm
Forum: JCL
Topic: Need help in JCL string search
Replies: 6
Views: 5943

With a variable number of variable-length data items (you could have A E I O U Incorporated, you could have dashes, numbers) and with variable-length data following what you want to extract, it is not going to be convenient. SORT has no loop-constructs. Although your field is second-from-the-end, th...
by William Collins
Mon Nov 30, 2015 4:56 pm
Forum: JCL
Topic: Sort and include dates in mm/dd/yyyy format
Replies: 1
Views: 4156

Your date is in a bad format for useful comparisons.

You need to treat the year, month and day separately.

Or, reformat your date in INREC in a temporary extension to the recird, and use OUTIFL INCLUDE= with BUILD to return your records to the original size.
by William Collins
Mon Nov 30, 2015 4:31 pm
Forum: COBOL
Topic: Compare two datasets & write matching records to output
Replies: 3
Views: 5457

SPAM
by William Collins
Fri Nov 27, 2015 7:41 pm
Forum: JCL
Topic: Need help in JCL string search
Replies: 6
Views: 5943

The you use PARSE, to find the "-" and pick up that and the four characters after it, and then set the parse-pointer back 10 and pick up the first five characters. This assumes that you don't have a "-" anywhere else prior to that. Not always true for a name. OPTION COPY INREC PARSE=(%01=(ST...
by William Collins
Thu Nov 26, 2015 7:03 pm
Forum: JCL
Topic: Need help in JCL string search
Replies: 6
Views: 5943

The first part of your data is in a fixed position, the thing is to get the final part also in a fixed position. You can use JFY with SHIFT=RIGHT to do that. Once you've got all the data you want in fixed positions, it is simple with BUILD. OPTION COPY INREC IFTHEN=(WHEN=INIT, OVERLAY=(51:7,...
by William Collins
Wed Nov 18, 2015 12:16 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: SORT card needed to exclude record set
Replies: 18
Views: 19848

Well, I was hoping you'd show the one that you declared as "not working" so we could polish that one.
by William Collins
Wed Nov 18, 2015 4:41 am
Forum: DFSORT , ICETOOL & Utilities
Topic: SORT card needed to exclude record set
Replies: 18
Views: 19848

You use JOINKEYS, with the same dataset for both inputs. In JNF1CNTL, you use INREC with WHEN=GROUP to PUSH an ID to a temporary extension to the record. This ID field will be your key for the first JOINKEYS statement, where you also specify SORTED,NOSEQCK. In JNF2CNTL you using INCLUDE to identify ...
by William Collins
Mon Nov 16, 2015 9:03 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: SORT card needed to exclude record set
Replies: 18
Views: 19848

It can be done with SORT.

Can you post the code you tried, please?
by William Collins
Thu Nov 12, 2015 2:01 am
Forum: DFSORT , ICETOOL & Utilities
Topic: SORT card needed to exclude record set
Replies: 18
Views: 19848

Well, of course it doesn't work. You've changed the spec.