MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 39 matches
MVSFORUMS.com Forum Index
Author Message
  Topic: Compare two files and merge data to one file
Brian Wood

Replies: 10
Views: 6906

PostForum: Utilities   Posted: Wed Jan 05, 2011 3:22 pm   Subject: Compare two files and merge data to one file
vak255:

Please try this:

//STEP EXEC PGM=SORT
//SORTOUT DD SYSOUT=*
//SORTJNF1 DD your.input.fileA
//SORTJNF2 DD your.input.fileB
//SORTOUT DD SYSOUT=*
//SYSIN DD *
JOINKEYS FILE=F ...
  Topic: Compare two files and merge data to one file
Brian Wood

Replies: 10
Views: 6906

PostForum: Utilities   Posted: Wed Jan 05, 2011 10:39 am   Subject: Compare two files and merge data to one file
Yak255:

The WER230A SORTOUT OUTREC FIELD OUTSIDE RANGE is issued because your REFORMAT statement is building a 84-byte record (80 bytes from F1 plus 4 bytes from F2), but your BUILD statement refer ...
  Topic: replicate data until a condition is met using syncsort
Brian Wood

Replies: 4
Views: 2141

PostForum: Utilities   Posted: Tue Dec 28, 2010 3:49 pm   Subject: replicate data until a condition is met using syncsort
nithyakothai:

Using your simple example I was able to produce the desired results using these control statements (requires SyncSort for z/OS 1.3.2):

INREC IFTHEN=(WHEN=GROUP,
...
  Topic: replicate data until a condition is met using syncsort
Brian Wood

Replies: 4
Views: 2141

PostForum: Utilities   Posted: Thu Dec 23, 2010 2:26 pm   Subject: replicate data until a condition is met using syncsort
nithyakothai:

I see that someone has reformatted your post so that the "mem#" records now all appear at the same position in the record.
In order to use INREC/OUTREC IFTHEN WHEN=GROUP pr ...
  Topic: replicate data until a condition is met using syncsort
Brian Wood

Replies: 4
Views: 2141

PostForum: Utilities   Posted: Thu Dec 23, 2010 12:02 pm   Subject: replicate data until a condition is met using syncsort
nithyakothai:

Your posting displays the second and third input records as containing fields starting in position 01 with the data "mem2" and "mem3". In your first input record t ...
  Topic: SYCNSORT - Assert a negative sign & REPRO to VSAM file
Brian Wood

Replies: 4
Views: 3072

PostForum: Utilities   Posted: Thu Oct 21, 2010 9:31 am   Subject: SYCNSORT - Assert a negative sign & REPRO to VSAM file
JMCrockett:

Please try the following (requires SyncSort for z/OS Release 1.3):

//SYSIN DD *
SORT FIELDS=COPY
OUTREC IFTHEN=(WHEN=(8,1,BI,NE,B'....1..1',OR,
8,1,BI,EQ, ...
  Topic: Flat file from a comma delimited file.
Brian Wood

Replies: 7
Views: 10032

PostForum: Utilities   Posted: Fri Feb 19, 2010 9:12 am   Subject: Flat file from a comma delimited file.
PARSE is not supported in a product as old as SyncSort MVS 3.7 (TPF4). There is no mechanism in SyncSort MVS 3.7 (TPF4) to accompish what you ask.
  Topic: Flat file from a comma delimited file.
Brian Wood

Replies: 7
Views: 10032

PostForum: Utilities   Posted: Thu Feb 18, 2010 11:10 am   Subject: Flat file from a comma delimited file.
batu544:
I used the following SyncSort control statements:

//STEP01 EXEC PGM=SORT
//SORTOUT DD SYSOUT=*
//SORTIN DD * ...
  Topic: Insert blank line on key break
Brian Wood

Replies: 9
Views: 5202

PostForum: Utilities   Posted: Mon Dec 21, 2009 1:39 pm   Subject: Insert blank line on key break
tcurrier:

To comment out a control statement using SyncSort, place an asterisk (*) in column 1.
  Topic: Insert blank line on key break
Brian Wood

Replies: 9
Views: 5202

PostForum: Utilities   Posted: Fri Dec 18, 2009 5:06 pm   Subject: Insert blank line on key break
tcurrier:

Thanks for the update. I try not to hard-code the DCB in my JCL so I automatically got FBA. The 'A' refers to ANSI control character, which controls things like printer line feeds. By rem ...
  Topic: Insert blank line on key break
Brian Wood

Replies: 9
Views: 5202

PostForum: Utilities   Posted: Fri Dec 18, 2009 1:56 pm   Subject: Insert blank line on key break
tcurrrier:

Starting with the very helpful coding example offered by Frank, I was able to get the expected results using SyncSort for z/OS 1.3.2.1 by removing the 'REMOVECC' parameter from the OUTFI ...
  Topic: Overlay with Build
Brian Wood

Replies: 8
Views: 8424

PostForum: Utilities   Posted: Tue Dec 15, 2009 3:44 pm   Subject: Overlay with Build
MF:

I have restricted the below coding example to the specifics of your latest posting. I have coded an OUTFIL statement which uses IFTHEN to detect if the byte in position 16 is a blank; if it is ...
  Topic: Sort - Elapsed time!!!
Brian Wood

Replies: 11
Views: 9284

PostForum: Utilities   Posted: Tue Nov 24, 2009 9:12 am   Subject: Sort - Elapsed time!!!
rkarthik22:

Please email me a copy of the complete job listing (JCL, JES LOG, SYSOUT containing SyncSort message output) to review.
  Topic: Subtracting days from a date in Syncsort
Brian Wood

Replies: 6
Views: 17814

PostForum: Utilities   Posted: Mon Nov 23, 2009 3:21 pm   Subject: Subtracting days from a date in Syncsort
prog_mario:

At this time, SyncSort does not have a special function to perform arithmetic on input date fields.
  Topic: Eliminate group of records based on criteria
Brian Wood

Replies: 5
Views: 3522

PostForum: Utilities   Posted: Tue Nov 03, 2009 3:01 pm   Subject: Eliminate group of records based on criteria
rk_pulikonda:

The WER268A syntax error message indicates that you are using an older level of SyncSort for z/OS that does not include support for WHEN=GROUP. Support for WHEN=GROUP was included in ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 5 Hours
Jump to:  


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group