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

File transfer from host with filler filled with blank spaces


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

New User


Joined: 15 Feb 2022
Posts: 21
Location: Portugal

PostPosted: Wed Feb 16, 2022 12:26 am
Reply with quote

Hello,

I need to transfer a MVS file from the host to the machine with the filler with blank spaces.
In the MVS file I have the blank spaces, but after the transfer to the machine those blanks spaces don't come out on the file.

Example of the end of the lines of the file .txt (viewed in notepad) in production (automatic generation):
(...);0,00[x(20) in spaces...]CRLF

Example of the end of the lines of the file .txt (viewed in notepad) in the test's system :
(...);0,00CRLF => no spaces are showen

The parameters I'm using to do the transfer are:
- Mode: MVS/TSO
- Reception from host (selected)
- Parameters> Format file: Text (selected), CR/LF (selected)
- MVS/TSO : Default (selected)
- Windows ANSI

I will appreciate if anyone can help me on this icon_wink.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2540
Location: Silicon Valley

PostPosted: Wed Feb 16, 2022 3:48 am
Reply with quote

Can you be more clear about the transfer? Is this TCP FTP or something else?
Back to top
View user's profile Send private message
jaguyria

New User


Joined: 15 Feb 2022
Posts: 21
Location: Portugal

PostPosted: Wed Feb 16, 2022 6:12 am
Reply with quote

Hello Pedro, the transfer is FTP. In TSO I just select the button to do the transfer from the mainframe to the machine.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2540
Location: Silicon Valley

PostPosted: Wed Feb 16, 2022 7:51 am
Reply with quote

1. re: production, test , machine
It sounds like you are doing two file transfers. Is that correct? Can you use TCP FTP directly from production to test system? I would try to use some alternate transfer method to see if there is some kind of translation problem using the emulator to transfer.

2. Tell us about the original data set. When you use ISPF edit, what are the PROFILE settings... that is, do you have NULLS ON for that data set?
Back to top
View user's profile Send private message
jaguyria

New User


Joined: 15 Feb 2022
Posts: 21
Location: Portugal

PostPosted: Fri Feb 18, 2022 2:06 am
Reply with quote

Hi Pedro,

1.
I'm just doing 1 file transfer in test's environment.
In production's environment I don't have access to view the file neither doing the transfer. This production's file is automatically stored in a folder, and in fact it is the functional team that is not understanding this difference, and they are asking me why there is this difference.
So I can't use TCP FTP directly from production to test system, because I don't have access to production.
And also I don't have alternate transfer method to test it.


2.
As you suggested I tried NULLS ON ALL, NULLS ON STD, NULLS OFF before transfer the file (and inserting a new line) to see if there was some difference, but after the transfer, I don't have the spaces in the file (at the end of each line I entered the spaces).

Can you please be more specific about the profile settings of ISPF edit you want to know? In TSO, I have a "Transfer" and after click there, there are 4 options:

a) "Transfer of file" > Goes to the settings I told about in my 1st message:

-General > Program of transfer Name: IND$FILE / Delay: 120
Format file: Text (selected), CR/LF (selected)
Minidisque VM : a

-VM/CMS: Default (selected)

-MVS/TSO:Default (selected)

-Table of traduction:
Windows ANSI (selected)> Page de codes hôte: France (297)

b) "Configuration" > Goes to the settings I told about in a)

c) "FTP" > empty

d) "Configuration FTP" > empty

Kind regards
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2540
Location: Silicon Valley

PostPosted: Fri Feb 18, 2022 4:36 am
Reply with quote

Can you determine the dataset is fixed block or variable blocked?

(fyi. I am just throwing out ideas, hoping it jogs someone's memory. I am retired and cannot check stuff myself)
Back to top
View user's profile Send private message
jaguyria

New User


Joined: 15 Feb 2022
Posts: 21
Location: Portugal

PostPosted: Fri Feb 18, 2022 5:31 am
Reply with quote

OK, I appreciate this change of ideas 🙂
The file is fixed file of X(800) but it's result of a sort of variable file Vsam of 1020 if I'm not mistaken, I will confirm it tomorrow at work.
Maybe the spaces come out in production because the format of the file, tomorrow I will check if the CFT is done from the Vsam or the fixed file. But I think it's done from the fixed file.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 418
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Fri Feb 18, 2022 5:33 am
Reply with quote

www.ibm.com/docs/en/search/trailingblanks

may be of interest
Back to top
View user's profile Send private message
jaguyria

New User


Joined: 15 Feb 2022
Posts: 21
Location: Portugal

PostPosted: Sat Feb 19, 2022 1:11 am
Reply with quote

Helllo dneufarth,
Where must I put this command TRAILINGBLANKS TRUE ?
In the FTP? In the file? Sorry but I didn't understood.
icon_redface.gif
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 418
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Sat Feb 19, 2022 1:38 am
Reply with quote

Carla, sorry, but I don’t know. Just searched for the term on ibm.com to see what they had. Haven’t been active in mainframe world for 20 years. Hoped someone else might know.
Back to top
View user's profile Send private message
jaguyria

New User


Joined: 15 Feb 2022
Posts: 21
Location: Portugal

PostPosted: Sat Feb 19, 2022 1:52 am
Reply with quote

No problem dneufarth icon_smile.gif
If anyone already used that can you help me?
I will search a little more of it.. Thank you!
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Sat Feb 19, 2022 3:11 am
Reply with quote

At some point there was a mention of IND$FILE; the "standard" TSO data transfer utility. Its default is to strip trailing blanks from each logical record. It does have a parameter - NOTRUNC - to not strip trailing blanks. Whether you can get this parameter into the IND$FILE command generated by your 3270 emulator without too much trouble I don't know.

FTP on the other hand does not strip trailing banks in a text transfer. I think there is a parameter on the GET command to request FTP to strip trailing blanks when transferring a text file. Since I do not use FTP I don't really know how to tell FTP to strip trailing blanks; all I know is it can be done fairly easily.

HTH
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2540
Location: Silicon Valley

PostPosted: Sun Feb 20, 2022 8:03 am
Reply with quote

Quote:
FTP on the other hand


I think one of the problems is with terminology. FTP is kind of generic term. I tried to be more specific, referring to it as "TCP FTP".

But it seems the original poster is using IND$FILE.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2540
Location: Silicon Valley

PostPosted: Sun Feb 20, 2022 8:06 am
Reply with quote

This describes (vaguely) how to change settings for IND$FILE:
www.ibm.com/docs/en/personal-communications/14.0?topic=SSEQ5Y_14.0.0/com.ibm.pcomm.doc/books/html/emulator_reference12.htm
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: Sun Feb 20, 2022 7:59 pm
Reply with quote

Classic FTP can be configured using the "FTP.DATA" dataset; you can specify TRAILINGBLANKS TRUE or FALSE in this dataset. See FTP.DATA data set statements for more information.
Back to top
View user's profile Send private message
jaguyria

New User


Joined: 15 Feb 2022
Posts: 21
Location: Portugal

PostPosted: Wed Feb 23, 2022 1:46 am
Reply with quote

I confirm that the transfer file is a fixed file of X(800) but it's result of a sort of variable file Vsam of 1024 (not 1020 as I've said before) and the CFT in Production is done from the fixed file X(800).

With your ideas I've fond a solution, thank you everyone! icon_biggrin.gif

As steve-myers suggested, using the NOTRUNC in the parameters of transfer of file it works (see below).

Solution:
1- Click "Transfer of file"
Type host: MVS/ TSO (selected)

2- Select parameters
2.1- Go to MVS/TSO:
Default (selected)
Unities: Blocks AV (selected)

2.2- Fill the box below as NOTRUNC:
Other options of reception: NOTRUNC

3- Click the button Transfer

after this the following code is automatic generated in the ISPF:
IND$FILE GET 'T0.DV.FILE' ASCII CRLF NOTRUNC


Thank you all, you're the best icon_biggrin.gif
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 SFTP Issue - destination file record ... All Other Mainframe Topics 1
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top