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
 

 

SOC4 while opening the file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
yugendran

New User


Joined: 14 Dec 2007
Posts: 51
Location: indore

PostPosted: Tue Jun 22, 2010 12:15 pm    Post subject: SOC4 while opening the file.
Reply with quote

Hi,

I am trying to open a file in my asm program. I am getting S0C4 during runtime for this statement( OPEN (INDCB,(INPUT)) )

Same statement executes well when run with just modlib.

When i try to run the same with just modlib by commenting the external programs the programs sucessfully reads n writes in flat file.

I am not able to find what went wrong during linking to external program?

Pls help me out in this

Code:
ASM1     CSECT                         
*ENTRY HOUSE KEEPING                   
         STM   14,12,12(13)             
         BALR  12,0                     
         USING *,12                     
         ST    13,SAVE+4               
         LA    13,SAVE                 
*MAINLINE                               
         WTO   'HERE'                   
         OPEN  (INDCB,(INPUT))         
         WTO   'HERE'                   
         OPEN  (OUTDCB,(OUTPUT))       
LOOP     GET   INDCB,INAREA             
         MVC   FCVISSDF(5),INAREA       
         WTO   'HERE'       

Commenting the below lines (call to external program)
           
         LA    1,=A(PARM1,DBLWRD)   
         L     15,=V(PRGB)         
         BASR  14,15       

Commenting end here 
             
         MVC   OUTAREA(8),DBLWRD                           
         PUT   OUTDCB,OUTAREA                               
EOF      CLOSE (INDCB)                                     
         CLOSE (OUTDCB)                                     
*EXIT  HOUSE KEEPING                                       
         L     13,4(13)                                     
         LM    14,12,12(13)                                 
         BR    14           RETURN                         
*FILE DCB'S                                                 
INDCB    DCB   DSORG=PS,MACRF=(GM),DDNAME=INFILE,EODAD=EOF,
               RECFM=FB,LRECL=80,BLKSIZE=800               
OUTDCB   DCB   DSORG=PS,MACRF=(PM),DDNAME=OUTFILE,         
               RECFM=FB,LRECL=80,BLKSIZE=800               
*CONSTANTS & VARS                                           
INAREA     DC    CL80' '                                     
OUTAREA  DC    CL80' '                                     
PARM1      DS    0CL5                     ISSUE DATE FIELDS   
MONTHS   DS    PL3                           MONTH YEAR CODE
DAYS       DS    PL2                           DAY           
DBLWRD   DS    D                                           
SAVE        DS    18F
               END     


Thanks
Yuge
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Jun 22, 2010 6:43 pm    Post subject:
Reply with quote

What is in reg 14 & 15 at the time of the S0C4?
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue Jun 22, 2010 9:12 pm    Post subject:
Reply with quote

Hello,

Quote:
When i try to run the same with just modlib by commenting the external programs the programs sucessfully reads n writes in flat file.
What is modlib?

Are there any unresolved references in the linkedit?
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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