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

S0C4 while concatenating a DASD and tape File.


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

New User


Joined: 11 Jul 2007
Posts: 3
Location: USA

PostPosted: Fri Apr 16, 2010 8:25 pm
Reply with quote

I am trying to execute a program by concatenating a Tape file and a DASD GDGBASE (all versions to be raked) and am receiving a S0C4 Reason Code 4. When I do the same thing with another program, the job executes successfully. Any reasons why two programs would behave differently for the same set of files?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Apr 16, 2010 8:42 pm
Reply with quote

Quote:
Any reasons why two programs would behave differently for the same set of files?
Because they are TWO DIFFERENT PROGRAMS?

Why on earth would you expect two programs -- which presumably were written to do entirely different things -- to behave the same just because the input data is the same? Would you expect Excel and Acrobat to handle the exact same input data the same?
Back to top
View user's profile Send private message
Jinsi

New User


Joined: 11 Jul 2007
Posts: 3
Location: USA

PostPosted: Fri Apr 16, 2010 9:48 pm
Reply with quote

Is there a reason why the concatenation of a tape and DASD file would not work in all cases?
Back to top
View user's profile Send private message
Jinsi

New User


Joined: 11 Jul 2007
Posts: 3
Location: USA

PostPosted: Fri Apr 16, 2010 10:01 pm
Reply with quote

Also the job ran successfully when the DASD file was copied to a tape and the input was provided in the form of cancatenated tape files. Not sure why would the program would not handle a tape and dasd but handle the files both files are on tape.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Apr 16, 2010 10:48 pm
Reply with quote

From the DF/SMS Using Data Sets manual, section 3.6.3.1.1:
Quote:
# For QSAM, if a data set after the first one is on magnetic tape and has a block size larger than all prior specifications, the volume must have IBM or ISO/ANSI standard tape labels or the BLKSIZE must be specified on the DD statement.

# For BSAM, if a data set after the first one is on magnetic tape and has a block size larger than all prior specifications, the BLKSIZE must be specified on the DD statement.

# The device is a DASD, tape, or SYSIN device, as is the device of the preceding data set. For example, you can concatenate a tape data set to a DASD data set, or you can concatenate a DASD data set to a tape data set. However, you cannot concatenate a tape data set to a card reader.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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
Search our Forums:

Back to Top