Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syncsort to use date validation in ccyymmdd format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
tswastik

New User


Joined: 01 Jun 2005
Posts: 3
Location: Minnetonka

PostPosted: Sat Oct 18, 2008 9:31 pm    Post subject: Syncsort to use date validation in ccyymmdd format
Reply with quote

Hi,

I was trying to remove the records from my input file on the basis of a date field when that is 72 months older. The field I am looking is in 2075th location and it is in CCYYMMDD format.

SORT FIELDS=COPY
INCLUDE COND=(2075,8,ZD,GE,&DATE1P-2190)
END

The sort control card looks okay. But when I was executing it gives me the following error. Could somebody able to tell me why I am getting Include Beyond Record error.

WER250A INCLUDE/OMIT FIELD BEYOND RECORD
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10278
Location: italy

PostPosted: Sat Oct 18, 2008 11:13 pm    Post subject: Reply to: Syncsort to use date validation in ccyymmdd format
Reply with quote

Quote:
WER250A INCLUDE/OMIT FIELD BEYOND RECORD


I am not a syncsort expert, but the message looks enough clear to me...
You are trying to process something outside the current record record length...

the curent record length is less than 2075 + 7
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Oct 18, 2008 11:39 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

Are you by chance working a variable length file that contains short(er) records?
Back to top
View user's profile Send private message
tswastik

New User


Joined: 01 Jun 2005
Posts: 3
Location: Minnetonka

PostPosted: Mon Oct 20, 2008 9:29 am    Post subject:
Reply with quote

Hi d.sch.,

You are correct, I am using a variable length recrod and my header record was shorter (even though my detail records are of good length). I rectified the issue and now it is working fine.

Thanks for your quick reply on this matter.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Oct 20, 2008 9:40 am    Post subject: Reply to: Syncsort to use date validation in ccyymmdd format
Reply with quote

You're welcome - good to hear it is working icon_smile.gif

d
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Mon Oct 20, 2008 10:11 am    Post subject:
Reply with quote

Quote:
I rectified the issue and now it is working fine.

tswastik,

It would be great if you could post the solution here so that it might help somebody later on.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us