Variable length block file



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: Variable length block file

Postby indianrajput » Tue Nov 23, 2021 7:39 am

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.
indianrajput
 
Posts: 9
Joined: Fri Nov 19, 2021 12:52 am
Has thanked: 0 time
Been thanked: 0 time

Re: Variable length block file

Postby Robert Sample » Tue Nov 23, 2021 7:33 pm

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?
Robert Sample
Global moderator
 
Posts: 3671
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 273 times

Re: Variable length block file

Postby indianrajput » Wed Nov 24, 2021 9:21 pm

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
indianrajput
 
Posts: 9
Joined: Fri Nov 19, 2021 12:52 am
Has thanked: 0 time
Been thanked: 0 time

Re: Variable length block file

Postby Robert Sample » Wed Nov 24, 2021 10:33 pm

I'm glad to hear you got it resolved. What was the issue, in case others later on have similar problems?
Robert Sample
Global moderator
 
Posts: 3671
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 273 times

Re: Variable length block file

Postby indianrajput » Wed Nov 24, 2021 11:33 pm

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
indianrajput
 
Posts: 9
Joined: Fri Nov 19, 2021 12:52 am
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post