IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

File having Junk data and now SOC7


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chandrakanta

New User


Joined: 28 Nov 2011
Posts: 11
Location: india

PostPosted: Thu Dec 01, 2011 8:51 pm
Reply with quote

Dear all,

This is my first time to forum and newly entered to Mainframe area.

My problem is my file having a trailor reord like this..>

ZHDEAL .......*20111120

because of this record i am facing soc7 and i cant delete this record this is needed for my file....i have done hex on ..but not sure how to convert this record to alphanumeric .please advice..

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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Dec 01, 2011 8:53 pm
Reply with quote

what does the application documentation tell about the record layout ?
it would be wise to find out why the record contains junk data and fix the process which creates the file.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Dec 01, 2011 9:09 pm
Reply with quote

Yes, if your program is being fed with this file as input, then go back to where it was created and find out why it contains this junk data.

You shouldn't have to cleanup someone else's mess.

The junk data is probably necessary for account balancing and aggregation, something which can't be bypassed.

Mr. Bill
Back to top
View user's profile Send private message
chandrakanta

New User


Joined: 28 Nov 2011
Posts: 11
Location: india

PostPosted: Thu Dec 01, 2011 9:31 pm
Reply with quote

Thanks..

i am able to solve this...
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Dec 01, 2011 10:39 pm
Reply with quote

Are you treating the trailer seperately from all the other data, with its own record-layout? As t'other Bill intimates, the information on the trailer you are probably supposed to check against the records that you have read.
Back to top
View user's profile Send private message
Jose Mateo

Active User


Joined: 29 Oct 2010
Posts: 121
Location: Puerto Rico

PostPosted: Fri Dec 02, 2011 12:21 am
Reply with quote

Good afternoon!

By experience, if you have a trailer record then you will probably have a header record. These records have different formats than your detail records. If you are not doing anything with these records like date verification or verifying the total records in the file then you should bypass it from the beginning.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Dec 02, 2011 12:34 am
Reply with quote

did anybody notice that the TS said that the problem was solved ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Dec 02, 2011 2:43 am
Reply with quote

Of course, it would be helpful to know the solution. . .

Might help another with a similar situation one day. . . icon_wink.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 8
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top