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?
654 Views Asked by csbl At
1
There are 1 best solutions below
Related Questions in FTP
- Site code to enable UTF-8 to EBCDIC encoding
- Images not showing when uploaded to server
- Batch file: map a FTP server
- Checking FTP folder for filenames in HTML
- Problems uploading file within a do while loop
- C# FTP server never receives incoming transfer connection after processing EPRT command
- I get 530 access denied in ftp connection after some upgrade in my internet connection
- Need to create a simple script for ftp login
- Unable to send file from ftp to another ftp
- How to upload any file to FTP Server using Google Apps Script
- Upload file to ftp with unique name in asp.net c#
- ftp_rawlist not running for huge directories
- How to login FTP with empty password in C#?
- View an image available in ftp
- Laravel 5 on shared hosting getting internal server error
Related Questions in COPY
- Objective-C Reference to object that implements protocol
- Copy to clipboard from Firefox add-on content script
- Implementing ICollection.CopyTo in C#: deep or shallow copy?
- Trying to create a Bath file that will copy a specific directory path (no lower) and zip the directories in that path
- C# How to get file/ copy file from a bzip2 (.bz2) file without extracting the file
- fast converting Bitmap to BitmapSource wpf
- include typescript file in output result build with TFS
- How to copy a table to another with primary key?
- Automated Testing (Watir): Retrieving data and implementing into your test?
- Php email send copy to sender
- Batch - xcopy files older than x minutes
- Copy rows with a specific condition
- Copy permissions form source file to file with same name
- SQL, postgres. I have a csv input file with columns like avg. When i export how do i keep my digits?
- The "trait Clone is is not implemented" when deriving the trait Copy for Enum
Related Questions in MAINFRAME
- difference between passing control to different program using return() and calling a program using xctl
- Getting output queue via FTP of a Mainframe (zOS)
- SELECT operator
- authentication between mainframe system and .net web service
- Register a copied application to registry
- I have a variable with PIC S9(4). Whether I use COMP or COMP-3 here?
- Converting a numeric to packed-decimal in Stored Procedure
- EBCDIC to ASCII not working Properly
- Send text file from Mainframe to IBM MQ
- Submit another JCL as a step from main JCL based on RC of the previous step {via Internal Reader}
- Accessing Mainframe datasets using FTP form Python
- Access a VSAM File from Rexx
- How to print decimal points in cobol?
- Procedure was expanded as instream procedure definition
- When a sql returns more than one value, what value will be stored in the host variable
Related Questions in JCL
- JCL IF statement on multiple lines
- Submit another JCL as a step from main JCL based on RC of the previous step {via Internal Reader}
- Procedure was expanded as instream procedure definition
- How to debug JCL
- How to convert IBM file to hexadecimal using DFSORT?
- creating a vsam file using jcl
- UNIDENTIFIED OPERATION FIELD Error in JCL
- Setting PATH in IEBGENER from file
- Generation Data Groups (GDG)
- How to do Delete/Define with using IDCAMS using batch JCL (z/VSE)
- Easytrieve A010 invalid file reference
- Lexing/Parsing "here" documents
- XML handling in REXX or JCL
- are //AMSDUMP DD and //SYSPRINT DD SYSOUT=A statements same?
- RECFM =FBA when i specifed RECFM=FB
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 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.