I have a problem which is I need to copy the latest member created in a PDS but as dar as I know the only option I have is to select the member name to copy. That PDS is updated daily with a FTP JCL, I cannot change, and so what I though of doing was to run my copy job after the FTP successfully ended. Is there any way I can do that? That is, select a member based on it's creation date? Thank you!
How do I copy the newest member of a pds with jcl?
655 Views Asked by csbl At
1
There are 1 best solutions below
Related Questions in FTP
- FTP ls works fine, but LIST not working. vsFTP server
- How can i pass the secrets to the ngrok.yml file in the container and in the FTP container to an environment?
- ftp download for small datasets works but for more than 300KB not
- Transfer a file from a local machine to an Ubuntu virtual machine using the FTP protocol through a Java program
- ftplib error encoding. latin-1 utf-8: utf-8' codec can't decode byte 0xf1 in position 132: invalid continuation byte
- Using Xftp to connect ftpzilla server on windows, can't open the directory
- Using python to connect ftp with ftp proxy
- Can I adjust the timeout on the python twistd server via a command line option?
- How to setup cloudflare to allow github actions to complete
- FileNotFoundError when using pd.read_parquet to read file in FTP server
- FTP connect with Windows powershell after setting the firewall port and passive-mode checked
- The remote server returned an error: (425) Can't open data connection when FTPS enabled
- Access denied when connecting to Azure App Service using FTP Credentials in WinSCP
- FTP TLS session reuse in PHP
- Multi hop proxy with pycharm (or filezilla)
Related Questions in COPY
- What is correct way to copy struct instance with fields in Go?
- On paste StartFragment - EndFragment Postman issue
- Copy paste a single value from within a cell to another cell
- Char array, char pointer, works in one case but not the other?
- Macro to copy, rename and organize a template worksheet
- Stored procedure with copy statement keeps running when called
- How can creation times be preserved while copying on Mac?
- Automate buildozer with windows bat file and ubuntu script
- If Cell contains specific text in col A copy cell from Col C into Col F stacked
- Why do I have a 403 error when trying to save a website
- SSRS Report - Graph when exported is compressed into a graphic
- Need to copy multiple cells in the same row of data from one sheet to another when a Checkbox is checked
- Is there a way to set an open workbook as a source without having the file name?
- How do you deep copy a variant of pointers in C++?
- Python Copy dictionary
Related Questions in MAINFRAME
- Where can I download ECI resource adapter (cicseci.rar). Unable to find out it in IBM portal
- Mainframe Programming Sorting, OUTFIL REMOVECC,NODETAIL
- Z/OS Cobol 6.3 copy: how to include only a chunk?
- SHA256 Checksum of a File transmitted from Mainframe to Azure
- open fetch and close cursor DB2
- How to "stack" an ISPF command?
- DB2 contention issues
- IBM z/OS TSO ISPF Editor Cancel command - how to add "Are You Sure?" query dialog
- FIlling a zone with S9(5)V9(8) COMP-3
- Mainframe monitoring using Zabbix
- How to programmatically overwrite DCI 2.0 policy via REXX or JCL?
- SEARCH ALL with a key PIC XX
- Why is this COBOL code failing to compile?
- Use MVS Dsname conventions. Mainframe name convention while downloading ftp using python
- COBOL issue (Compiling and executing)
Related Questions in JCL
- Mainframe Programming Sorting, OUTFIL REMOVECC,NODETAIL
- What are JCL Alternitives for Embeded Applications?
- Do I need delimiters on Dataset names for IDCAMS ALTER?
- How do i automate the JCL
- How to process non formatted numeric variable from SYSIN DD from JCL in COBOL
- How to programmatically overwrite DCI 2.0 policy via REXX or JCL?
- Sorting in JCL or COBOL
- How do I write current date and time to a sequential dataset using JCL?
- Replace using Sort in JCL
- I have a VB file of varying record length. I want to convert it in FB file
- Hi there, I am very new to mainframe and JCL, and I need some help understanding what this means/what I have to do
- Is a RECFM=VB dataset required to have a BDW?
- Update the trailer counts using JCL
- MVS ALLOCATE DDNAME to apply to multiple jobs
- Execute multiple JCL job with same name simultaneously
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't see a way to do this without writing some code.
IEBCOPY does not allow selection based on member creation date.
If the PDS is not prohibitively large, you could create a copy prior to the FTP, run SuperC in batch, parse the output (maybe with Rexx), then construct your IEBCOPY SELECT statement(s).
I don't believe you can rely on FTP updating the member statistics, which is why I'm suggesting the kludge above. It doesn't really get you the "newest" member, it gets you members that are different from the copy created prior to any FTP activity.
In your comment you indicate you want to copy the PDS with SORT. I don't believe that will give you what you want. IEBCOPY (or one of the ISV drop-in replacements) is what is used to copy PDSs. If you are SMS-managed you can use the LIKE parameter pointing to SYSUT1 on your SYSUT2 DD when you make your copy with IEBCOPY; that should copy the DCB characteristics so you get a dataset you can work with.
If you find you can rely on the PDS member statistics being updated by FTP then you can use the LMINIT, LMOPEN, LMMLIST, LMCLOSE ISPF services to determine your "newest" member without needing a copy of the PDS.