FTP to a Mainframe system

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
chaks
Premium Member
Premium Member
Posts: 39
Joined: Wed Nov 22, 2006 9:21 pm
Location: MA

FTP to a Mainframe system

Post by chaks »

I am trying to FTP a EBCDIC file to Mainfram system and the file looks good when viewed from EBCDIC file viewer but when I FTP the file , the fixed length is distorted

Code: Select all

00501 100   RECPT/WAIT OFFICE SUPP  010221 0000                         
 00501 100A  COPY       OFFICE SUPP  010221 0000                        
  00501 100B  CONF       CONFERENCE   010221 0000                       
   00501 101   POFT       OFFICE       010221 0000                      
    00501 102   POFT       OFFICE       010221 0000                     
     00501 103   POFT       OFFICE       010221 0000                    
      00501 104   CLASSROOM  CLASSROOM    010221 0000                   
       00501 105   CLASSROOM  CLASSROOM    010221 0000                  
        01401 S052  GOSR       OFFICE SUPP  052101 0000                 
         01401 S054  POFT       OFFICE       052101 0000                
          01401 S060  CONF       CONFERENCE   052101 0000               
           01401 S074  POFT       OFFICE       052101 0000              
            01401 S075  POFT       OFFICE       052101 0000             
             01401 S076  POFT       OFFICE       052101 0000            
              01401 S077  POFT       OFFICE       052101 0000           
               01401 S078  POFT       OFFICE       052101 0000          
                01401 S079  POFT       OFFICE       052101 0000         
                 01401 S081  POFT       OFFICE       052101 0000        
                  01401 S082  POFT       OFFICE       052101 0000       
                   01401 S083  POFT       OFFICE       052101 0000      
                    01401 S211  OOFT       OFFICE       053901 0000     
                     01401 S250  POFT       OFFICE       053901 0000    
                      01401 S251  POFT       OFFICE       053901 0000   
                       01401 S252  POFT       OFFICE       053901 0000  
                        01401 S253  POFT       OFFICE       053901 0000 
Job design is to Read from Sequential file as a single record of fixed length 80 to FTP enterprise stage , using Binary mode transfer and Byte_order as big-endian

If you have any idea or came across this issue before , can you please guide me
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

Most likely cause is extra control characters (CR or LF) at the end of the 80-byte record. View the mainframe file in hexadecimal mode, and if they are there you'll see them.

Another possible but less likely cause is that the file is cataloged with an lrecl of less than 80 bytes. If you don't know how to view the catalog entry for this file, you'll need one of your mainframe colleagues to help.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
Post Reply