Page 1 of 1

INCLUDE CONDITION TO SORTOUT DATA FROM VBA FILE

PostPosted: Fri Mar 11, 2016 2:48 am
by mvmanish
i am trying to write a jcl for sorting out data. In my jcl sortin ds is vba file withe 120 byte length and sortout file is alse created with same attributes as sortin. But the problem here is i m using include statment as below.

SORT FIELDS=COPY
INCLUDE COND=(88,14,CH,EQ,C'RECORDS LOADED')

I am getting the error as "INCLUDE/OMIT FIELD BEYOND RECORD"

Re: INCLUDE CONDITION TO SORTOUT DATA FROM VBA FILE

PostPosted: Fri Mar 11, 2016 3:47 am
by Terry Heinze
In the future, please post in the appropriate forum: DFSORT, Syncsort, or whatever. And use code tags where applicable.
Are any of your input records less than 101 bytes long?

Re: INCLUDE CONDITION TO SORTOUT DATA FROM VBA FILE

PostPosted: Fri Mar 11, 2016 4:56 am
by BillyBoyo
Have a look at VLSCMP and VLSHRT in the documentation.

Re: INCLUDE CONDITION TO SORTOUT DATA FROM VBA FILE

PostPosted: Fri Mar 11, 2016 11:47 pm
by mvmanish
Terry,
Sure i will check in future.
Some of the input records are having less than 101 bytes. Please suggest

Re: INCLUDE CONDITION TO SORTOUT DATA FROM VBA FILE

PostPosted: Sat Mar 12, 2016 12:17 am
by Terry Heinze
I think BillyBoyo gave you the answer.