Search found 56 matches

by rangab
Thu Feb 05, 2009 9:41 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: a basic doubt on WHEN=(logexp) and WHEN=ANY
Replies: 5
Views: 8309

a basic doubt on WHEN=(logexp) and WHEN=ANY

Hi, How does the combination of WHEN=(logexp) and WHEN=ANY work? Suppose there are these set of records and if I apply these two expressions on this data, how the output will be? Input Data: MERMA 01 2009 NEXTR 02 VERJO 01 2009 VERJ1 02 BARST 01 2009 VERJ2 02 INREC IFTHEN=(WHEN=(7,2,CH,EQ,C'01'),BUI...
by rangab
Wed Feb 04, 2009 9:28 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Copy records only from File-2 - SPLICE
Replies: 9
Views: 10651

Frank, thank you very much for the quick reply. So, it is a disadvantage to follow the second solution and first solution is the ideal one.
by rangab
Wed Feb 04, 2009 8:59 pm
Forum: COBOL
Topic: benefits with SYNC
Replies: 4
Views: 7639

In continuation to my post, I found another record structure that uses SYNC !! 01 MASTER-DESTINATION-HEADER-RCD SYNC. 05 MSTR-HEADER-ID PIC X(04). 05 MSTR-HOLDING-SOURCE PIC X(01). 05 MSTR-TLR-CODE PIC X(05). 05 MSTR-DETAIL-DATA-BYTE-CNT PIC 9(10). 05 MSTR-FILLER PIC ...
by rangab
Wed Feb 04, 2009 8:54 pm
Forum: COBOL
Topic: benefits with SYNC
Replies: 4
Views: 7639

benefits with SYNC

Hi,

What is the benefit of declaring a field with SYNC?

Code: Select all

05  WS-TOP-MAX-TABLE-SIZE            PIC S9(04) COMP SYNC   
                                               VALUE +1000.
Please explain.

Thanks.
by rangab
Wed Feb 04, 2009 8:52 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Copy records only from File-2 - SPLICE
Replies: 9
Views: 10651

Thanks

Hi, Frank. Thank you very much for your help.

Just out of curiosity, I would like to ask how the SPLICE solution would be if FILE-1 is copied first to temporary file and FILE-2 next. This question is to just understand the different possibilities !

Thanks again.
by rangab
Wed Feb 04, 2009 5:42 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Copy records only from File-2 - SPLICE
Replies: 9
Views: 10651

again !

Frank, let me put both my input files here once again :roll: FILE-1: RECFM=FB, LRECL=80 114D 2007 L03066140000012134800001 114D 2007 L03066140000012134800001 214D 2007 L03066140000011134100001 214D 2007 L03066140000011134100001 314D 2007 L10080140000092110400001 314D 2007 L10080140000092110400001 FI...
by rangab
Wed Feb 04, 2009 12:23 am
Forum: DFSORT , ICETOOL & Utilities
Topic: Copy records only from File-2 - SPLICE
Replies: 9
Views: 10651

Hi, my mistake.......copy, paste error :x FILE-2: 214D 2007 L03066140000011134100001 164Z 2007 L10080140000010210400001 314D 2007 L10080140000092110400001 124E 2007 L10080140000012110400001 Expected output: 164Z 2007 L10080140000010210400001 124E 2007 L10080140000012110400001 Thanks for asking.
by rangab
Tue Feb 03, 2009 11:49 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Copy records only from File-2 - SPLICE
Replies: 9
Views: 10651

Copy records only from File-2 - SPLICE

Hi, 1st Input File: RECFM=FB, LRECL=80 ----+----1----+----2----+----3----+----4 114D 2007 L03066140000012134800001 114D 2007 L03066140000012134800001 214D 2007 L05644140000012068500001 214D 2007 L05644140000012068500001 314D 2007 L10080140000012110400001 314D 2007 L10080140000012110400001 2nd Input ...
by rangab
Tue Feb 03, 2009 11:36 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Copy records for matching key appearing at different places.
Replies: 4
Views: 14230

skolusu, Thank you very much for the immediate help.
by rangab
Tue Feb 03, 2009 10:26 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Copy records for matching key appearing at different places.
Replies: 4
Views: 14230

Frank, Thanks for the reply.

Yes. Your assumption is correct. The File-1 can have records anywhere between 28000 to 50000. The File-2 can have records upto 1.5 millions.

Thank you.
by rangab
Tue Feb 03, 2009 5:30 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Copy records for matching key appearing at different places.
Replies: 4
Views: 14230

Copy records for matching key appearing at different places.

Hi, I want to compare FILE-1 & FILE-2 and compare matching records from FILE-2 to output file. FILE-1: RECFM=FB, LRECL=80 TBIG100 TBIG200 TBIG980 FILE-2: RECFM=FB, LRECL=88 XMART_C%F#N_TBIG800_FINTE%AM PRIN%CE%TON_FINTEAM_BAR%^*&SA_TBIG200 OVERLAY*&_COMPO%$%ITT_TBIG100 XMART_CAPT#*_09900_TBIG910 JUM...
by rangab
Fri Jan 30, 2009 4:54 pm
Forum: FILE-AID
Topic: join two records into one record
Replies: 3
Views: 8622

Anuj,

Input:

Code: Select all

RECORD1
RECORD2
RECORD11
RECORD22
Expected output:

Code: Select all

RECORD1RECORD2
RECORD11RECORD22
Please help.

Thanks.
by rangab
Fri Jan 30, 2009 4:52 pm
Forum: FILE-AID
Topic: Copy two continous records to o/p using File-Aid
Replies: 0
Views: 2997

Copy two continous records to o/p using File-Aid

Hi,

How to copy two continous records to o/p using File-Aid.

Input:

Code: Select all

001 ABC
001 MARANTH289 + 290 + 300
001 BBC
001 PRADENT300 + 320 + 189
001 ABC
001 CAMERO900 + 190 + 980
Required output:

Code: Select all

001 ABC
001 MARANTH289 + 290 + 300
001 ABC
001 CAMERO900 + 190 + 980
Thanks.
by rangab
Thu Jan 29, 2009 10:25 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: ALTSEQ statement
Replies: 8
Views: 13482

Sorry :(

Frank, sorry about it. :oops:
by rangab
Thu Jan 29, 2009 10:19 pm
Forum: FILE-AID
Topic: Copy selected records and move to form a single key.
Replies: 1
Views: 6597

Copy selected records and move to form a single key.

Hi, My input data: This is just a sample record only. A CD20 30T B CD21 20F C CD22 10E Output: ACD2030T BCD2120F CCD2210E I have tried below code but it did not work. //SYSIN DD * $$DD01 COPY IF=(1,EQ,C'A'), ORIF=(1,EQ,C'B'), ORIF=(1,EQ,C'C'), MOVE=(1,1,1), MOVE=(...