Page 2 of 2

Re: how exclude bytes in a middle of VB record

PostPosted: Thu Jul 19, 2012 1:53 pm
by BillyBoyo
"SYNCSORT PROBLEMS CONTACT THE ROCC" it says in your sysout :-)

If you have no DCB for your output and using (1,4,5) etc I'm not sure how you'd get 4227 for your length.

I don't have Syncsort, so can't try it.

If The ROCC is not available, post your JCL, cards with the (1,4,5) etc and the sysout from the step.

Re: how exclude bytes in a middle of VB record

PostPosted: Thu Jul 19, 2012 11:41 pm
by dick scherrer
Hello,

I suspect that when you didn't specify "enough" in the code and also did not specify a dcb in the output, the input dcb was used?

Re: how exclude bytes in a middle of VB record

PostPosted: Fri Jul 20, 2012 12:17 am
by juares castro
Hi Dick!
That is clear to me. Not specifying neither all code "(1,4,5)" nor DCB for output, DCB Input file sets the output.
Important to me now is that code written first by Billy works. Spaces (40) that complete the record length are not a big problem
for my requirement. Just would like to know how avoid that.
Thanks!

Re: how exclude bytes in a middle of VB record

PostPosted: Fri Jul 20, 2012 7:09 am
by dick scherrer
Hello,

Maybe it will help if you post the complete jcl and sort control for the "code written first by Billy". I seem to have gotten myself lost :)

Re: how exclude bytes in a middle of VB record

PostPosted: Sat Jul 21, 2012 12:28 am
by juares castro
Hi!
The last code used and INPUT/OUTPUT files were posted before. (Tue Jul 17, 2012 7:27 pm)
Thanks!

Re: how exclude bytes in a middle of VB record

PostPosted: Sat Jul 21, 2012 12:39 am
by dick scherrer
Hello,

I still don't see any code "written by Billy". . .

It would help if all of the "pieces" were posted in one post/reply. Then we would not need to root around to look at this.

Thanks.

Re: how exclude bytes in a middle of VB record

PostPosted: Sat Jul 21, 2012 12:56 am
by juares castro
Hi!
Tue Jul 17, 2012 6:24 am Billy posted that I should change second clause "IFTHEN" to "IFTHEN=(WHEN=NONE" then
I changed it and ran OK. And after that I posted the code and results.
Thanks!

Re: how exclude bytes in a middle of VB record

PostPosted: Sat Jul 21, 2012 2:53 pm
by BillyBoyo
Juares,

You have to understand how it looks to us. Even if nothing has changed with regard to what you have posted and you have posted nothing "extra", we are not in a position to know that, and can't reliably expect to be able to recreate from the bits and pieces you have supplied. And that, remember, is if everything is correct.

I can't think how you are getting 4227 records written, and couldn't from your original. I don't have Syncsort and can't experiment.

Please put together a post with the JCL used, the sort control cards, the output from the step and a sample input record(s) reflecting the problem, the output record from that and what output was expected.