Page 2 of 2

Re: Variable length block file

PostPosted: Tue Nov 23, 2021 7:39 am
by indianrajput
sergeyken wrote:
indianrajput wrote:
sergeyken wrote:0. There are millions of examples for this task available anywhere in this world. No need to ask people to re-invent what has been done ages ago.
1. Present your code (or critical part(s) of it)
2. Present your data (or critical part(s) of it)
3. Present your results, including error message(s)
4. Don't forget to use this:
CODE TAGS for your samples


Hi Sergeyken,
Thanks for your answer . I am new to the forum so can you please guide me where is the example related to VB file to VB file movement ....
If you want I can share my code too


1. One of thousands of easily available examples with comments:
http://coboltuts.blogspot.com/p/file-ha ... iable.html

. . . . . . . . . . .


4. Don't forget to use this:
CODE TAGS for your samples

Hi,
thanks a lot for the link given. i had gone through this piece of code , but in this input variable length file size and output variable length file size are same ..this is just copy and paste. In my case I have input variable file size is 6104 and output variable file size is having 6175. and hence getting issue.

Re: Variable length block file

PostPosted: Tue Nov 23, 2021 7:33 pm
by Robert Sample
OK, we're getting somewhere now. Additional questions:

- Is the output VB data set a new data set or existing data set?
- If it is new, please show the JCL DD statement for it.
- If it is existing, please show an ISPF 3.4 data set information listing for it.
- Have you browsed the output VB data set to verify that you are, in fact, getting records with different record lengths written to it?

Re: Variable length block file

PostPosted: Wed Nov 24, 2021 9:21 pm
by indianrajput
Robert Sample wrote:OK, we're getting somewhere now. Additional questions:

- Is the output VB data set a new data set or existing data set?
- If it is new, please show the JCL DD statement for it.
- If it is existing, please show an ISPF 3.4 data set information listing for it.
- Have you browsed the output VB data set to verify that you are, in fact, getting records with different record lengths written to it?


Hi Robert,
Thanks a lot for the big help by asking many such questions ...and from these questions itself, problem got resolved.
Once again thanks for help you provided.

Regards
Singh

Re: Variable length block file

PostPosted: Wed Nov 24, 2021 10:33 pm
by Robert Sample
I'm glad to hear you got it resolved. What was the issue, in case others later on have similar problems?

Re: Variable length block file

PostPosted: Wed Nov 24, 2021 11:33 pm
by indianrajput
Robert Sample wrote:I'm glad to hear you got it resolved. What was the issue, in case others later on have similar problems?


Hi Robert,
Thanks for your reply.....The issue was with space not available in Vol Serial and hence unable to write all the records.

Thanks once again for the help you provided.

Regards
Singh