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
 

 

Difference while sending files with FBA fromat through FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Difference while sending files with FBA fromat through FTP
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Aug 31, 2009 4:31 pm    Post subject: Reply to: Difference while sending files with FBA fromat thr
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: 7932
Location: Bellevue, IA

PostPosted: Mon Aug 31, 2009 4:54 pm    Post subject:
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    Post subject: Reply to: Difference while sending files with FBA fromat thr
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    Post subject: Reply to: Difference while sending files with FBA fromat thr
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Difference while sending files with FBA fromat thr
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm


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