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
 

 

abend while file transfer

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
sonali12_9

New User


Joined: 13 Feb 2009
Posts: 20
Location: United States of america

PostPosted: Tue May 18, 2010 4:54 pm    Post subject: abend while file transfer
Reply with quote

I am getting below abend in Komfi step(file transfer)

,SEND ,1B02,D,DATAIN ,GET ,WRNG.LEN.RECORD,00000187000000,QSAM.
System abend code 001, reason code 00000004.

I am trying to send same file to different users. but for 2 user id's i am getting abend. sometimes jcl abends for user 1 and sometimes it abends fro user 5
File which is sent is created in prior step of jcl.

I have verified users and server info also.
My jcl is
//file1 EXEC A1116DL,FILE=&&TEMP1,LRECL=150,
// USER=A1,SERVER=s1,PCFILE='temp.txt'
//fill2 EXEC A1116DL,FILE=&&TEMP1,LRECL=150,
// USER=A2,SERVER=s2,PCFILE='temp.txt'
Similarly 8 times this step is repeated for different users.

please suggest me what could be the reason.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Tue May 18, 2010 5:03 pm    Post subject:
Reply with quote

Wrong length record seems pretty self-explanatory. Your job is probably failing because you are using fixed length 150-byte records and data being passed is not 150-byte fixed length records.
Back to top
View user's profile Send private message
sonali12_9

New User


Joined: 13 Feb 2009
Posts: 20
Location: United States of america

PostPosted: Tue May 18, 2010 5:50 pm    Post subject:
Reply with quote

Hi Robert,

if that could be the reason for the abend how could few steps ran fine from the same jcl( i mean for few users it is working fine). is it possible that in one step file is transmitted and other case it is not
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Tue May 18, 2010 6:25 pm    Post subject:
Reply with quote

Your JCL is different in some way for the step that abended -- period. Your task is to figure out the difference because that'll be what caused the abend. And it doesn't matter if your job has 255 steps and 254 of them ran fine -- each step is an independent program running so you can wrong length records or any other error in any given step, even the last one. In other words, who cares how many steps ran fine -- they don't have the same JCL as the step that abended.
Back to top
View user's profile Send private message
sonali12_9

New User


Joined: 13 Feb 2009
Posts: 20
Location: United States of america

PostPosted: Tue May 18, 2010 7:05 pm    Post subject:
Reply with quote

I think i am not clear .

All my jcl steps are similar. only difference is user id and server.

i am transferring a single file temp.txt file to different users. sometimes my job abends in step which transfer file to user1 and sometimes it abends with user 5 or it varies.

Assuming step1is for user1
step2 is for user2 and .... step 5 for user5
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Tue May 18, 2010 7:42 pm    Post subject:
Reply with quote

Okay, if you want some help you're gonna have to post the JCL expansion. You can SAY all your steps are similar, but something is different or you would not get the error.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue May 18, 2010 7:49 pm    Post subject: Re: abend while file transfer
Reply with quote

sonali12_9 wrote:
System abend code 001, reason code 00000004.

Have you looked further at the "System abend code 001" which says The completion code can be issued if CLOSE processing called end-of-volume (EOV), and EOV processing detected an out-of-space condition. Refer to the explanation of message IEC020I in z/OS MVS System Messages, Vol 7 (IEB-IEE) for information about the task that was ended.
Pay special attention to the reference to the message IEC020I.....
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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