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
 

 

Invalid line of X'00' in the output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Swetalina

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Tue May 29, 2012 1:32 pm    Post subject: Invalid line of X'00' in the output file
Reply with quote

Hi,
In my output file, there is one extra line is coming after every 100 records as X'00'. No records are missing from the output but this line is extra. My input file is a VB, LRECL=328,BLKSIZE=32800 and the output file is 320 length with FB format with BLKSIZE=32000.

We are converting from 328 to 320 because 324 is complete data where first 4 bytes are designed to keep the length and the next 320 bytes is the actual data.

In the code if I try to bypass the line of X'00' before writing to output file, it is not working.

Can you please help me to know what may be the cause for this issue. Let me know if any clarification needed.

Thanks.
Back to top
View user's profile Send private message

Swetalina

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Tue May 29, 2012 1:38 pm    Post subject: Reply to: Invalid line of X'00' in the output file
Reply with quote

And as I change the BLKSIZE, the position of the extra line also changes. Like LRECL=320 and if BLKSIZE=32000(100 multiple), the extra line comes after every 100 records. If BLKSIZE is 31680(multiple of 99), the extra line comes after every 99 record and so on.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Tue May 29, 2012 5:21 pm    Post subject:
Reply with quote

Which language? This is a mixed language forum for both PL/1 and assembler.
Back to top
View user's profile Send private message
Swetalina

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Tue May 29, 2012 5:54 pm    Post subject:
Reply with quote

Nic Clouston wrote:
Which language? This is a mixed language forum for both PL/1 and assembler.


Sorry, this is assembler.
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: Tue May 29, 2012 7:57 pm    Post subject:
Reply with quote

Hello,

Is the x'00' record the first record in a block or the last record in a block or is it somewhere else?

How is the data being written?
Back to top
View user's profile Send private message
Swetalina

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Tue May 29, 2012 10:40 pm    Post subject: Reply to: Invalid line of X'00' in the output file
Reply with quote

Hi Dick,
It seems the X'00' line is the end of the block as I said earlier that when the BLKSIZE=32000 and LRECL=320, it comes in every 100th record. As we change the BLKSIZE (multiple of 320), the line position varies accordingly.
Back to top
View user's profile Send private message
Swetalina

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Tue May 29, 2012 11:48 pm    Post subject:
Reply with quote

Hi Dick,
As of the existing code, the output is a VB file too. And the output is written in blocks with first 4 bytes as the blocksize(RDW). So, since the requirement is to make it as a FB file, I am bumping the first 4 bytes.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue May 29, 2012 11:57 pm    Post subject:
Reply with quote

Quote:
as the blocksize(RDW).
36_11_6.gif 36_11_6.gif 12.gif 36_11_6.gif
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: Wed May 30, 2012 12:06 am    Post subject:
Reply with quote

Hello,

Your code should write logical records (not physical blocks). There would be no reason to be concerned about the RDW in the code.

Possibly there is something i misunderstand?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Wed May 30, 2012 3:20 am    Post subject: Re: Invalid line of X'00' in the output file
Reply with quote

Swetalina wrote:
Hi,
In my output file, there is one extra line is coming after every 100 records as X'00'. No records are missing from the output but this line is extra. My input file is a VB, LRECL=328,BLKSIZE=32800 and the output file is 320 length with FB format with BLKSIZE=32000.

We are converting from 328 to 320 because 324 is complete data where first 4 bytes are designed to keep the length and the next 320 bytes is the actual data.

In the code if I try to bypass the line of X'00' before writing to output file, it is not working.

Can you please help me to know what may be the cause for this issue. Let me know if any clarification needed.

Thanks.


What do you mean by "line"?

You have an input VB with lrecl 328. The records you are interested in are 320 bytes of data, so would be 324 bytes on your input. Presumably you have other records which are a bit longer? Are you exluding those, or accidently choping them about a bit?

Do you have any records which are shorter?

Why did you attempt to "get rid" of the "line" by just ignoring it?

What else are you doing to the records in your program? Something which requires Assembler, or you just wanted to write a program (with an error in it) rather than doing what you want with, for instance, your Sort product?

You've not shown a single line of code. What do you expect from us? Magic? Assurances that your code must be fine and something must be wrong with the "operating system"?

So, JCL, the OPEN, the code related to writing the record and answers to all questions posed to you by everyone, please.
Back to top
View user's profile Send private message
Swetalina

New User


Joined: 11 Nov 2008
Posts: 30
Location: Bangalore

PostPosted: Wed May 30, 2012 12:47 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Your code should write logical records (not physical blocks). There would be no reason to be concerned about the RDW in the code.

Possibly there is something i misunderstand?

Hi Dick,
Yes, there is no reason to be concerned about the RDW in the code, but here in this file it is designed to have the 4bytes data in the beginning of the file. Please see the attachment a snap shot of input file, which is not needed in the output file. So, in the o/p file also there were 4 bytes coming in the beginning which I overlapped.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed May 30, 2012 12:50 pm    Post subject: Reply to: Invalid line of X'00' in the output file
Reply with quote

DO NOT POST ATTACHMENTS,
not everybody can look at them

EVEN WORSE JPEGS
it' s a useless waste of disk space

a plain TEXT cut and paste and the code tags are more than enough!

the attachment has been deleted
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: Wed May 30, 2012 9:50 pm    Post subject:
Reply with quote

Hello,

Please use copy/paste and show a couple of examples of the input data records and what the output from that input should be.

Attachments do not work well with our forum as they are blocked at many sites for security reasons. They also are harder to read in a post than data posted using the Code tag.

There is a Preview function so you can see your post as it will appear to the forum (rather than how it appears in the Reply Editor). When the post appears as you wish, Submit.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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