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

Difference while sending files with FBA fromat through FTP


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Mon Aug 31, 2009 4:27 pm
Reply with quote

Hi,
We are converting FTP2 (CA protocol) ftp methodology to IBM TCP ACCESS FTP methodology.

There is few bytes difference between these two ftp process while we ty to send files with FBA format. Please see the below snapshots of the jobs that we used.

Below is the IBM TCPIPaccess methodology of ftp...
Code:
//STEP01  EXEC PGM=FTP,PARM='(TCP IBMTCPIP EXIT)' 
//SYSTCPD  DD  DSN=NETPRD.TCPIP.DATA(SYTA),DISP=SHR
//SYSPRINT DD  SYSOUT=*                           
<servername>                                       
<userid>                                           
<password>                                         
<server path>                                     
ascii                                             
put 'useris.acrstats(+0)' +                       
     test1.acr                                     
close                                             


Below is the older CA ftp methopdology code
Code:

//STEP03   EXEC FTP2,PARM='/FIOS'                             
//SYSPRINT DD  SYSOUT=*                                       
//SYSPUT   DD  DCB=BLKSIZE=133,                               
//             SYSOUT=*                                       
//SYSGET   DD  *
<servername>                                       
<userid>                                           
<password>                                         
<server path>                           
ascii                                                         
PUT 'LAPP.NT.T103.ACRSTATS(+0)'                               
     test3.ACR                                               
CLOSE                                                         
BYE                                                           
END               
                                           


Can somebody suggest as to what command we have to use in the IBM ftp methodology so that files generated by both the ftp types are exactly the same?

Thanks!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Aug 31, 2009 4:31 pm
Reply with quote

Quote:
There is few bytes difference between these two ftp process

until You describe better the differences very little can be said

but just to start with, You are showing different file names, so after all the differences might be correct,

what happens when You send exactly the same file icon_question.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Mon Aug 31, 2009 4:54 pm
Reply with quote

You'll probably need to change the translate table ... IIRC, CA and IBM TCP stacks use different translation tables so characters do not come across exactly the same. Check the Communications Server manuals for IBM -- I don't know which manuals have the CA information.
Back to top
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Mon Aug 31, 2009 6:17 pm
Reply with quote

The difference is basically just a "SPACE". While we do a IBM type transfer a space is added to the front of the a every record. I could see from the job logs that while using CA the job is accepting a FBA file format transission whera IBM type doesnt seem to do it.

Thanks for looking into this..
Back to top
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Mon Aug 31, 2009 6:19 pm
Reply with quote

Regarding the suggestion of sending same files, I obviosuly sent the same files only through both ftp moded. Just the name was mistyped in the snippet. Apologize for the confusion there..
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Aug 31, 2009 6:34 pm
Reply with quote

What I have seen with FTP is that the carriage control character in the first position of an FBA file is translated. A "1" becomes a FORMFEED, a "2" becomes a LINEFEED etc, and each records is terminated with CR/LF. Since windows doesn't have a way to view a raw file in hex mode it is hard to see just what the changes are.
Back to top
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Tue Sep 01, 2009 11:10 am
Reply with quote

I went into the server and caught the differences on a hope that it might help. Below is the snapshot of the same,

Code:

(lawapsx101c)/apps/lawson/fin/data/test_comp> diff ibmtest.acr catest.acr
1,24c1,24
< 1  LAP1103                  FORMAT LAWSON RECEIPTS PROCESS
<    08/31/09 18:32:33         LAP1103 - CONTROL TOTALS
<
<  RECEIPT RECORDS READ                                 (CNT)             80,196
<  RECEIPT RECORDS READ                                 (AMT)      89,186,150.78
<
<  IMPORT RECEIPT RECORDS (BYPASSED)                    (CNT)                  0
<  IMPORT RECEIPT RECORDS (BYPASSED)                    (AMT)               0.00
<
<  STORE PLANNING RECEIPTS (BYPASSED)                   (CNT)                  0
<  STORE PLANNING RECEIPTS (BYPASSED)                   (AMT)               0.00
<
<
<  NON-STORE/NON-DC RECEIPT RECORDS (BYPASSED)          (CNT)                  0
<  NON-STORE/NON-DC RECEIPT RECORDS (BYPASSED)          (AMT)               0.00
<
<  RECEIPTS OUT OF TOLERANCE (EXCEPTION REPORT)         (CNT)                  3
<  RECEIPTS OUT OF TOLERANCE (EXCEPTION REPORT)         (AMT)         121,025.98
<
<  RECEIPT RECORDS WRITTEN FOR TRANSMIT TO LAWSON       (CNT)             80,196
<  RECEIPT RECORDS WRITTEN FOR TRANSMIT TO LAWSON       (AMT)      89,186,153.92
<
<  ITEM RECORDS WRITTEN FOR TRANSMIT TO LAWSON          (CNT)            933,745
<  ITEM RECORDS WRITTEN FOR TRANSMIT TO LAWSON          (AMT)      89,186,153.92
---
>
  LAP1103                  FORMAT LAWSON RECEIPTS PROCESS
>   08/31/09 18:32:33         LAP1103 - CONTROL TOTALS

> RECEIPT RECORDS READ                                 (CNT)             80,196
> RECEIPT RECORDS READ                                 (AMT)      89,186,150.78

> IMPORT RECEIPT RECORDS (BYPASSED)                    (CNT)                  0
> IMPORT RECEIPT RECORDS (BYPASSED)                    (AMT)               0.00

> STORE PLANNING RECEIPTS (BYPASSED)                   (CNT)                  0
> STORE PLANNING RECEIPTS (BYPASSED)                   (AMT)               0.00


> NON-STORE/NON-DC RECEIPT RECORDS (BYPASSED)          (CNT)                  0
> NON-STORE/NON-DC RECEIPT RECORDS (BYPASSED)          (AMT)               0.00

> RECEIPTS OUT OF TOLERANCE (EXCEPTION REPORT)         (CNT)                  3
> RECEIPTS OUT OF TOLERANCE (EXCEPTION REPORT)         (AMT)         121,025.98

> RECEIPT RECORDS WRITTEN FOR TRANSMIT TO LAWSON       (CNT)             80,196
> RECEIPT RECORDS WRITTEN FOR TRANSMIT TO LAWSON       (AMT)      89,186,153.92

> ITEM RECORDS WRITTEN FOR TRANSMIT TO LAWSON          (CNT)            933,745
> ITEM RECORDS WRITTEN FOR TRANSMIT TO LAWSON          (AMT)      89,186,153.9
[/code][/quote]
Back to top
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Thu Sep 03, 2009 10:26 am
Reply with quote

The command "Locsite ASATRANS" has worked for us finally.

Converting the file from FBA to FB also is working.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top