Error while receiving XMIT data set

This forum provides the support of Dezhi Mainframe systems. Please post your questions about logon, usage of our mainframe environment.

Moderators: sysprog, prino, sfan, steve-myers, Tim001

Error while receiving XMIT data set

Postby gnanas » Tue 04 Aug 2009, 04:48

Hi,

I use the below JCL to receive XMIT data set.

Code: Select all
//ALLOCATE EXEC PGM=IEFBR14                       
//TO#FILE  DD DSN=GNANAS.REXXDOC,                 
//            DISP=(,CATLG,DELETE),               
//            UNIT=SYSDA,                         
//            SPACE=(TRK,(175,25,250)),           
//            DCB=(RECFM=FB,LRECL=080)           
//************************************************
//RECEIVE  EXEC PGM=IKJEFT01,                     
//            REGION=5000K,                       
//            DYNAMNBR=30                         
//FROMFILE DD DSN=GNANAS.T,                       
//            DISP=SHR                           
//SYSPRINT DD  SYSOUT=*                           
//SYSTSPRT DD SYSOUT=*                           
//SYSTSIN  DD  *                                 
 RECEIVE   +                                     
 INDDNAME(FROMFILE)                               
 DATASET('GNANAS.REXXDOC')                       
/*                                               


I am getting the following error as a result.
Code: Select all
1READY
  RECEIVE   INDDNAME(FROMFILE)
 INMR921I Received file appears not to be an Interactive Data Transmission Facility file. The first record is:
 INMR922I VàÉÕÔÙðñ B  P  ÕÒÁÉâÅÙÁ  âèâÓÂÄ  ç  è$  òððñðñðõñõòñðõ/ 
 INMR901I Dataset X.RECEIVE.INVALID.FILE from ? on ?
 INMR907A Enter copy parameters or 'DELETE' or 'END' +
 INMR908A The input file attributes are: DSORG=SEQUENTIAL, RECFM=VB, BLKSIZE=3120, LRECL=85, File size=18K bytes +
 INMR909A You may enter DSNAME, SPACE, UNIT, VOL, OLD/NEW, or RESTORE/COPY/DELETE/END
 INMR060I RECEIVE command terminated.  Output dataset unusable. +
 INMR062I 'GNANAS.REXXDOC' is a partitioned dataset, but no member name was specified.
 READY
 END


Data set GNANAS.T is created by IND$FILE file transfer from a xmit file in PC.

Data set attributes are as follows for GNANAS.T
Code: Select all
                              Data Set Information                             
 Command ===>                                                                   
                                                                               
 Data Set Name . . . . : GNANAS.T                                               
                                                                               
 General Data                           Current Allocation                     
  Management class . . : **None**        Allocated blocks  . : 39               
  Storage class  . . . : USER            Allocated extents . : 1               
   Volume serial . . . : FUSR17                                                 
   Device type . . . . : 3390                                                   
  Data class . . . . . : **None**       Current Utilization                     
   Organization  . . . : PS              Used blocks . . . . : 27               
   Record format . . . : FB              Used extents  . . . : 1               
   Record length . . . : 80                                                     
   Block size  . . . . : 800                                                   
   1st extent blocks . : 39                                                     
   Secondary blocks  . : 24                                                     
   Data set name type  :                 SMS Compressible  . : NO               
                                                                               
   Creation date . . . : 2009/08/03      Referenced date . . : 2009/08/03       
   Expiration date . . : ***None***                                             
                                                                               


Please let me know where I am wrong?
Cheers,
Gnanas N.
gnanas
 
Posts: 25
Joined: Sat 13 Jun 2009, 04:57

Re: Error while receiving XMIT data set

Postby prino » Tue 04 Aug 2009, 05:30

gnanas wrote:I am getting the following error as a result.
Code: Select all
1READY
 RECEIVE   INDDNAME(FROMFILE)
 INMR921I Received file appears not to be an Interactive Data Transmission Facility file. The first record is:
 INMR922I VàÉÕÔÙðñ B  P  ÕÒÁÉâÅÙÁ  âèâÓÂÄ  ç  è$  òððñðñðõñõòñðõ/ 
 INMR901I Dataset X.RECEIVE.INVALID.FILE from ? on ?
 INMR907A Enter copy parameters or 'DELETE' or 'END' +
 INMR908A The input file attributes are: DSORG=SEQUENTIAL, RECFM=VB, BLKSIZE=3120, LRECL=85, File size=18K bytes +



RECFM=VB, LRECL=85?

To receive a file, the XMIT file has to have a RECFM=FB and an LRECL=80. Also, the first record printed above does not contain INMR01, so my guess is that you didn't upload the file as binary.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
Some programming here :mrgreen:
prino
 
Posts: 479
Joined: Sat 06 Jun 2009, 21:41
Location: Vilnius, Lithuania

Re: Error while receiving XMIT data set

Postby gnanas » Wed 05 Aug 2009, 04:23

so my guess is that you didn't upload the file as binary.

Yes, you are correct. I did not specify BINARY mode.

It worked well when I used BINARY mode.

Thanks for your time and suggestion.
Cheers,
Gnanas N.
gnanas
 
Posts: 25
Joined: Sat 13 Jun 2009, 04:57


Return to Dezhi systems: Mainframe

Who is online

Users browsing this forum: No registered users and 0 guests

cron