View previous topic :: View next topic
|
Author |
Message |
Raghu M N
New User
Joined: 12 Mar 2018 Posts: 2 Location: India
|
|
|
|
Hi Guys,
Could someone help in resolving this using JCL.
1. I am having a file with n records (zip files) in it.
2. I will get the count from it to one variable (assume COUNT =25)
Now according to this count I need to create datasets dynamically and need to copy files one by one dynamically into the datasets created to process the files.
Thanks |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2018 Location: USA
|
|
|
|
You cannot do it in JCL.
Period.
Advice: start learning information technology from scratch. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
unfortunately the description of the requirement is clear as mud |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Quote: |
COMMON MISCONCEPTIONS/TERMINOlOGY MISUNDERSTANDINGS
===================================================
1) Job Control Language (JCL)
--------------------------
Many people seem to mis-understand what JCL is.
Although the 'L' in JCL stands for 'Language' JCL is not executable.
JCL does not manipulate data, it does not even look at data.
JCL is like a memo from you to the Operating System (OS) requesting it (the OS) to run one or more programs.
The JCL specifies some, or all, the resources required to accomplish the requested tasks.
When the JCL is read the OS reads it and sets up whatever it requires to do the tasks defined in the JCL.
It then DISCARDS the JCL, i.e. writes it to the output spool, never to look at it again.
The OS then runs the program(s) in accordance with the information it has extracted.
|
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
This is a VERY poorly worded request. Things that have not been answered include:
- where do the output dataset names come from?
- where do the input dataset names come from?
- what is the maximum number of datasets to be created?
- what does "n records (zip files)" mean?
-- Are the input datasets zipped?
-- Are the output datasets to be zipped?
-- Does the site have a mainframe zip program?
--- If not, how is the zip / unzip process being done?
- "create datasets dynamically"
-- using BPXWDYN?
-- using Asembler's dynamic allocation?
-- using some other method not yet described?
- "need to copy files one by one dynamically"
-- using IEBGENER?
--- If so, how are the DD names going to be allocated / freed?
-- using a program?
-- using some other method not yet described?
- will there be times when the count is zero?
-- should the process handle this? |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Many, many years ago I looked at ZIP files very carefully. There is no way, repeat, no way to stack multiple ZIP files into a single file except by using ZIP to ZIP multiple ZIP files into a single file. This is rather silly, as the new file will be larger than the sum of the sizes of the component files. In other words, what Raghu M N appears to be thinking cannot be done. Period. End of story. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
from the link posted and by the program name prefix GIM
GIMUNZIP is probably only available for SMPE related/structured data |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
I'm rather out of date with SMP. I was not aware of GIMUNZIP and its related functions. I followed the GIMUNZIP link Mr. Umarjikar provided and other links in the GIMUNZIP topic.
The issue is this. On toy machines where the number of bytes in a file is an attribute of the file, the first thing a program that is going to process the file does is go to the end of the file to extract something about the file. There is nothing in a ZIP file except, perhaps, the PK data in the first two bytes of the file (in memory of the late Phil Katz) to reliably say this is the start of a ZIP file, and it is all to easy to think PK can be in the data, not just the beginning.
It appears to me GIMZIP performs a PKZIP type function on regular data sets. I have absolutely no idea what the internal format of a GIMZIP data set is, but I very much doubt it is exactly the PKZIP format. |
|
Back to top |
|
|
|