View previous topic :: View next topic
|
Author |
Message |
jaguyria
New User
Joined: 15 Feb 2022 Posts: 21 Location: Portugal
|
|
|
|
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 |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
Can you be more clear about the transfer? Is this TCP FTP or something else? |
|
Back to top |
|
|
jaguyria
New User
Joined: 15 Feb 2022 Posts: 21 Location: Portugal
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
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 |
|
|
jaguyria
New User
Joined: 15 Feb 2022 Posts: 21 Location: Portugal
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
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 |
|
|
jaguyria
New User
Joined: 15 Feb 2022 Posts: 21 Location: Portugal
|
|
|
|
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 |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
Back to top |
|
|
jaguyria
New User
Joined: 15 Feb 2022 Posts: 21 Location: Portugal
|
|
|
|
Helllo dneufarth,
Where must I put this command TRAILINGBLANKS TRUE ?
In the FTP? In the file? Sorry but I didn't understood.
|
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
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 |
|
|
jaguyria
New User
Joined: 15 Feb 2022 Posts: 21 Location: Portugal
|
|
|
|
No problem dneufarth
If anyone already used that can you help me?
I will search a little more of it.. Thank you! |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
jaguyria
New User
Joined: 15 Feb 2022 Posts: 21 Location: Portugal
|
|
|
|
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!
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 |
|
Back to top |
|
|
|