Search found 12 matches

by ChykyMunky
Mon Mar 21, 2016 6:46 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Alternating recs from multiple input files to one output fil
Replies: 2
Views: 3511

How do I get the sequence numbers on there?
by ChykyMunky
Sat Mar 19, 2016 2:15 am
Forum: DFSORT , ICETOOL & Utilities
Topic: Alternating recs from multiple input files to one output fil
Replies: 2
Views: 3511

Alternating recs from multiple input files to one output fil

I want to have multiple input files. The input files should alternate being written to ONE output file. So it should look something like this Input File 1: 1 2 3 Input File 2: A B C Output File: 1 A 2 B 3 C (In the past I have attached a sequence number to the input recs, sort on the sequence number...
by ChykyMunky
Sat Sep 12, 2015 12:37 am
Forum: COBOL
Topic: Put paragraph name into a variable
Replies: 0
Views: 2562

Put paragraph name into a variable

Hi I was wondering if there is a way to put a paragraph name into a variable. There has to be a better way than how I am doing it. Right now Im doing MOVE "1000-PARAGRAPH-NAME" TO WS-HOLD-NAME. I want avoid having to move 1000-PARAGRAPH-NAME, and have it done automatically. Like this: WORKING-STORAG...
by ChykyMunky
Tue Jun 16, 2015 2:57 am
Forum: DFSORT , ICETOOL & Utilities
Topic: Sort and filter a file into multiple files using 1 sort card
Replies: 9
Views: 11096

Can you show me the code with the example I gave. Im just not getting how the fields are getting sorted. Under normal circumstances I could research this, however, I have to present this idea soon. Like I said though, I'm not all the familiar with SORT, or JCL. Im really confused about the BUILD con...
by ChykyMunky
Sat Jun 13, 2015 6:58 am
Forum: DFSORT , ICETOOL & Utilities
Topic: Sort and filter a file into multiple files using 1 sort card
Replies: 9
Views: 11096

Oh wow. Ive never done any of that before. My experience with JCL is pretty basic.

Can you show the code for that?
by ChykyMunky
Fri Jun 12, 2015 1:23 am
Forum: DFSORT , ICETOOL & Utilities
Topic: Sort and filter a file into multiple files using 1 sort card
Replies: 9
Views: 11096

1310078+INVALID ACCOUNT NUMBER 11CLIENT100760702115922710006110221F6F6F BR42364186732232502210437120000101 12CUSTOMERA0076072211592284000610312 N4N4NBB427537468055001503121141520000101 1A0527I3I3I0610FBB440897171593261505270322080000101100000CCP 1310061+WRONG MERCHANT NUMBER 1A0527I3I3I0610FBB44089...
by ChykyMunky
Wed Jun 10, 2015 6:17 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Sort and filter a file into multiple files using 1 sort card
Replies: 9
Views: 11096

After talking to a coworker about this topic, what I want to be cant be done.
You can only have one sort field per sort card.
I will have to create a different sort card for each file and work with them separately.
So first I will filter my data into separate files, then sort each file individually.
by ChykyMunky
Wed Jun 10, 2015 2:56 am
Forum: DFSORT , ICETOOL & Utilities
Topic: Sort and filter a file into multiple files using 1 sort card
Replies: 9
Views: 11096

Sorry William, I wrote the example to be simple but in actuality the data I will be working with won't be. I will be working with many different files. They will need to be sorted on more than one criteria. Some will need to be sorted by name, other by date, time, etc. And even in combinations. I ho...
by ChykyMunky
Tue Jun 09, 2015 8:05 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Sort and filter a file into multiple files using 1 sort card
Replies: 9
Views: 11096

Sort and filter a file into multiple files using 1 sort card

** Please show code in your explanation ** Hi, If I have an input file I want to be able to split the data into multiple output, and as it splits the data I want it to also sort the data. So my files would be: INPUT.FILE1 OUTPUT.FILE1 OUTPUT.FILE2 Inside my input file is the following data REC1 XXX ...
by ChykyMunky
Thu May 07, 2015 12:55 am
Forum: DFSORT , ICETOOL & Utilities
Topic: Create a title header for a report
Replies: 3
Views: 4986

Ive used SORT to get the header, I saw an example on another website. I was trying the ICETOOL example they provided but kept getting a RC=20. Code: //MY0001 EXEC PGM=SORT //SORTIN DD DSN=FILE.INPUT //SORTOUT DD DSN=FILE.OUTPUT //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,15,CH,A) OUTFIL FNAMES=...
by ChykyMunky
Tue May 05, 2015 8:55 pm
Forum: JCL
Topic: how to retrieve the odd and even numbers records
Replies: 3
Views: 5504

William Collins,

Can you give an example of this?

Or anyone else who can answer?
by ChykyMunky
Tue May 05, 2015 8:47 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Create a title header for a report
Replies: 3
Views: 4986

Create a title header for a report

I would like to create a report header using JCL. The forum isn't allowing me to keep the spacing so just assume that the details line up with the headers. And number 1 is most important! 1) So if my input file has a LRECL of 132 and has the following data: John Smith 01 19 2001 M B+ My output file ...