MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem in Easytrieve program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Mon Sep 20, 2004 9:00 am    Post subject: Problem in Easytrieve program Reply with quote

Experts,

I have a peculiar problem in a easytrieve program that i have coded.

POINT is sucessfull for a VSAM file. Point gives file status value '00'.
While executing GET statement the program just hangs.
It is not at all displaying DISPLAY statement coded after GET statement.
I submitted a job executing this easytrieve program.
The CPU% of job varies. But EXCP-Cnt not varying. This job took TOTAL CPU TIME=120.01.

Following is the code taken from my program.
Code:

POINT QEBEB GE WS-EBEB-KEY STATUS             
                                             
IF FILE-STATUS(QEBEB) EQ 00                   
   DISPLAY 'START OK ' EGD-4302-EMPL-GROUP-ID
   GET QEBEB STATUS                           
   DISPLAY 'READ ST ' FILE-STATUS(QEBEB)     

Defintion for file
FILE QEBEB VS                                   
                                               
EGB-5500-EMPL-GRP-BENEFIT-REC       1   275  A 
EGB-4302-EMPL-GROUP-ID              1    10  A 
EGB-9358-FUNDING-ARRANGEMENT      130     2  A 


The keylength of VSAM file is 36 bytes.
I ran VERIFY command for this VSAM file also. But in vein.
I copied this VSAM file to sequential and created new vsam file and loaded records to new vsam file and used new vsam file in job.
The new VSAM file also gave same problem.

Please help me in resolving this problem.

Thanks,
Ravikumar.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Sep 20, 2004 9:35 am    Post subject: Reply with quote

Ravikumar,

What type of vsam cluster is QEBEB? As far as I remember POINT statement is valid only on indexed, keyed, or relative-record file.

What does WS-EBEB-KEY contain? Does it match with the key definition of the vsam cluster? Post the vsam attributes and the your code

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Mon Sep 20, 2004 10:25 am    Post subject: Reply with quote

Kolusu,

Thanks you very much for your immediate response.
The file i am talking about is KSDS file.
WS-EBEB-KEY contains 10 bytes of data (BCBSGA0010) + remainng bytes are low-values.

WS-EBEB-KEY W 36 A
WS-EMPL-GROUP-ID WS-EBEB-KEY 10 A

First i am initializing WS-EBEB-KEY using the following statement
MOVE X'00' TO WS-EBEB-KEY FILL X'00'
After that i am moving value 'BCBSGA0010' to WS-EMPL-GROUP-ID before POINT.
In file QEGEG there is a record with key starting with 'BCBSGA0010'

Please let me know if you need further clarifications.

Thanks,
Ravikumar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Sep 20, 2004 11:00 am    Post subject: Reply with quote

Ravikumar,

Try to run the following code and see if it works.
[code:1:3c5d3bd41a]
//STEP0100 EXEC PGM=EZTPA00
//STEPLIB DD DSN=EASYTREV.LOADLIB,
// DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//FVMZCDBR DD DSN=YOUR KSDS VSAM FILE,
// DISP=SHR
//SYSIN DD *

FILE QEBEB VS
EGB-5500-EMPL-GRP-BENEFIT-REC 1 275 A
EGB-4302-EMPL-GROUP-ID 1 10 A
EGB-9358-FUNDING-ARRANGEMENT 130 2 A


WS-EBEB-KEY W 36 A
WS-EMPL-GROUP-ID WS-EBEB-KEY 10 A

JOB INPUT NULL

MOVE X'00' TO WS-EBEB-KEY
MOVE 'BCBSGA0010' TO WS-EMPL-GROUP-ID

POINT QEBEB GE WS-EBEB-KEY

IF FILE-STATUS(QEBEB)
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Tue Sep 21, 2004 10:50 am    Post subject: Reply with quote

Kolusu,

I tried the way what you said. It works.

Let me clearly explain my problem.

The program sequetially reads a KSDS file (i.e, JOB INPUT QEGEG).
Take a field (10 bytes) from record of QEGEG file and populate key (36 bytes) of another file QEBEB and using POINT, GET statements read a record from QEBEB file. The GET statment is pecfectly working for first 1959 records of QEGEG file.
In the 1960th record of QEGEG file, GET statment for QEBEB file is hanging.

Please help me in resolving this problem.

Thanks,
Ravikumar.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group