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
 

 

S0C7 in GDG processing

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Vinodc

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Thu Dec 01, 2005 9:00 pm    Post subject: S0C7 in GDG processing
Reply with quote

Hi,

We have a program in nightly batch which refers a GDG for input. One/More file is recieved daily from external system as latest version of the GDG. The program reads the GDG Base to find out all versions which werent processed. The GDG is defined as
GDG dataset limit: 60
Uncatalog options: NOEMPTY
Scratch options: SCRATCH.

Now the issue is, the program abends with S0C7 abend when the 60th version of the GDG is created and processed by the program.

As a temporary solution, we rename the processed versions to make the latest version less than 60 and program goes fine.

I am not sure but to me it seems issue in GDG allocation. I tried reallocation and it didnt worked.

Thanks in advace for your help.
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Dec 02, 2005 12:57 am    Post subject: Re: S0C7 in GDG processing
Reply with quote

Hi Vinodc,

Can you please give some more information on how this is all working?

JCL and a description of how the program processes the GDG base to decide on what has not been processed. Without knowing details it?s hard to know what the problem might be.

I can tell you how we handle the processing of multiple gens of a GDG when each gen is not processed individualy.

Code:


//JS0100   EXEC PGM=IDCAMS
//INDD     DD DSN=MY.GDG.FILES,      <== ALL GENS      
//            DISP=(OLD,DELETE,KEEP)
//OUTDD    DD DSN=MY.GDG.FILES.BKUP(+1),
//            DISP=(NEW,CATLG,DELETE),
//            SPACE . . .      
//            . . .
:
:
//JS0200   EXEC PGM=MYPROGRAM
//INGDG    DD DSN=MY.GDG.FILES.BKUP(+1),
//            DISP=SHR
:
:
Back to top
View user's profile Send private message
Vinodc

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Thu Dec 08, 2005 7:16 pm    Post subject: S0C7 in GDG processing
Reply with quote

Hi,

Apologies for the incomplete information, and thanks for your prompt response.

The JCL Looks like this:

Code:
//....
//....
//STEP01 EXEC PGM=PROG123,COND=(0,NE)                           
//DCFI     DD  DISP=SHR,DSN=Input file (GDG BASE).
//PARMT    DD  DISP=SHR,DSN= Parameter File
//DCFO     DD  DSN=A New Temporary File,
//             DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(1,1),RLSE),
//             DCB=(LRECL=459,RECFM=V,BLKSIZE=0)                 
//..
//..
//..
//STEP02 EXEC PGM=PROG456,COND(0,NE)
//DCFI     DD DSN=the Temporary File created in previous Step
//Other Files..
//*
//*...


The program PROG123 access all versions of input file (DCFI) through GDG BASE, and reads the date and time stamp on header record, and compare it with Date and Time stamp on parameter file. All files which have greater date and time stamps, are copied to a new temporary file, which is processed in the next program.

This program PROG123 is abending with S0C7, when the number of versions becomes more than GDG Dataset Limit (60 here). The run instance where 61st version is created in GDG (1st version is deleted as it is SCRATCH), we face the S0C7 abend.

Is it related to GDG BASE definition in any way?
Can u or somebody suggest me better way to copy all unprocessed files in a temporary file using some parameter file?

Thanks a lot.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts processing a XML file in PL/1 grvtomar PL/I & Assembler 2 Fri Jun 09, 2017 1:07 pm
No new posts File processing vishwakotin Mainframe Interview Questions 14 Fri Apr 28, 2017 11:38 am
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm
No new posts Run stats processing on zIIP Engine Virendra Shambharkar DB2 9 Fri Oct 14, 2016 10:24 am
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


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