Hello Respected Members:
Is there any way to create a flat file using FTP quote site command.
My requirement is to create a PS file of LRECL=32721 and then transfer foreg: C:\Extractfile.Txt. (From Windows to Mainframe).
I tried with quote command and was able to create a PS file and transfer the .TXT file, but when i open the PS file in mainframe to check the data, I found that.
1: The first character on the first line is "~" and
2: The data in the PS file is not editable(after opening it in EDIT mode).
3: If I do a searched for a string(which is already present in the file), it says string not found.
For the above 2,3 points, I issued a command as ( C ALL p'.' ' ') and i can see that the PS file is editable and the search text is working.(but does this guarantee the correct file - need kind suggestions) or I think, there is something wrong with my quote command or may be I am missing some functionality.
Pls note: MrSpock tried http://www.ibmmainframeforum.com/jcl/topic4559.html creating PDS file via FTP command line.
Creating PS file via FTP command line
-
- Posts: 1
- Joined: Sat May 26, 2018 7:23 pm
- Skillset: Mainframe
- Referer: Refering this sites from years
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Creating PS file via FTP command line
1 - What has this to do with ANNOUNCEMENTS/ Suggestions & Feedback?
2- They are data sets not 'files'. File are on linux, unix and windows NOT z/OS except in specific cicumstances eg streams of data to/from modems
Moving somewhere else that is more appropriate.
2- They are data sets not 'files'. File are on linux, unix and windows NOT z/OS except in specific cicumstances eg streams of data to/from modems
Moving somewhere else that is more appropriate.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: Creating PS file via FTP command line
Yes, use the QUOTE SITE to specify the required parameters and z/OS will create the data set.Is there any way to create a flat file using FTP quote site command.
Since you did NOT provide us with the details of what you did (such as the exact QUOTE SITE values you used, nor the FTP commands you used), that is about all we can tell you. The fact that your data set is wrong is a function of what you did, not what the system is capable of.
Re: Creating PS file via FTP command line
Show us the input file and the Mainframe dataset in hex format. Also the FTP statements that you are using. We would be able to help you with that.
I know terminology is important in IT. But I've seen many of my experienced co-workers use the term file interchangeably with dataset. I believe it is ok, and not bother about it.
Even programming languages like SAS use INFILE, OUTFILE, FILENAME statements when referencing mainframe datasets.
They are data sets not 'files'. File are on linux, unix and windows NOT z/OS except in specific cicumstances eg streams of data to/from modems
I know terminology is important in IT. But I've seen many of my experienced co-workers use the term file interchangeably with dataset. I believe it is ok, and not bother about it.
Even programming languages like SAS use INFILE, OUTFILE, FILENAME statements when referencing mainframe datasets.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
FORMAT THE FILE SO ALL CHILD UNDER SAME PARENT IN ONE LINE
by azhar » Wed May 31, 2023 4:27 pm » in JCL - 1
- 1754
-
by sergeyken
View the latest post
Thu Jun 01, 2023 3:06 am
-
-
- 6
- 3098
-
by willy jensen
View the latest post
Thu Dec 05, 2024 11:59 pm
-
-
Need help in a rexx scenario for creating and updating PDS
by princesam89 » Fri Feb 02, 2024 4:20 pm » in CLIST & REXX - 3
- 2369
-
by willy jensen
View the latest post
Sat Feb 03, 2024 8:07 pm
-
-
-
comparte two fileds on the same line
by samb01 » Thu Mar 23, 2023 6:27 pm » in DFSORT/ICETOOL/ICEGENER - 2
- 1095
-
by samb01
View the latest post
Thu Mar 23, 2023 9:30 pm
-
-
-
REXX to Edit 3rd Line of all members in PDS
by shiitiizz » Thu Aug 13, 2020 5:21 pm » in CLIST & REXX - 3
- 3724
-
by Pedro
View the latest post
Fri Aug 14, 2020 3:50 am
-