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

BXEnter?? - in VSAM file processing


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
avelayudhan

New User


Joined: 30 Nov 2005
Posts: 26

PostPosted: Thu Mar 15, 2007 6:29 pm
Reply with quote

I am getting a mysterious 'error' while processing a KSDS VSAM file. Initially, the file's top few rows are

-NOTE- CAPS MODE IS "ON"
H***H01 000 ::PAYMENT HISTORY REPORT FOR HRP
H***H01 001 //GSSXXXX JOB XXXXX,'GENESYS OLPHRPTH',PRTY=12,
H***H01 002 // REGION=5100K,CLASS=A
H***H01 003 // JCLLIB ORDER=GENESYS.PROCLIB
H***H01 004 //JOBLIB DD DSN=GENESYS.LOADLIB,DISP=SHR
H***H01 006 //* DD DSN=SYS1.CEE.V1R5M0.SCEERUN,DISP=SHR
H***H01 007 //OLPHRPTH EXEC OLPHRPTH


Then while accessing the program that uses this VSAM, a record is added at the top of the file by the OS? Anyone know what this record is and why this been inserted? The file length is 100 and key length is 15



BXEnter Cmd000
H***H01 000 ::PAYMENT HISTORY REPORT FOR HRP
H***H01 001 //GSSXXXX JOB XXXXX,'GENESYS OLPHRPTH',PRTY=12,
H***H01 002 // REGION=5100K,CLASS=A
H***H01 003 // JCLLIB ORDER=GENESYS.PROCLIB
H***H01 004 //JOBLIB DD DSN=GENESYS.LOADLIB,DISP=SHR
H***H01 006 //* DD DSN=SYS1.CEE.V1R5M0.SCEERUN,DISP=SHR
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 16, 2007 4:37 pm
Reply with quote

I would somehow doubt that the OS is adding the record.

Have a gooooood long look at everything your program is doing, because the operating system does not hijack programs and insert spurious records into files.

If it does, I think you may have just discovered the very first hack into a mainframe icon_eek.gif
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 Mar 16, 2007 9:53 pm
Reply with quote

Hello,

Does this record still exist in the output file?
Quote:
H***H01 007 //OLPHRPTH EXEC OLPHRPTH


You post does not show it in the "problem" file.

Something in your code created a "key" that was lower than "H***H01 " so when you look at the "top" of the file the BXEnter record is first.

When you examine your code you may find that you issued a write without moving proper values to the output area.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top