IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Creation of Datasets dynamically on the count basis


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Raghu M N

New User


Joined: 12 Mar 2018
Posts: 2
Location: India

PostPosted: Fri Mar 16, 2018 12:56 am
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2018
Location: USA

PostPosted: Fri Mar 16, 2018 2:10 am
Reply with quote

You cannot do it in JCL.
Period.

Advice: start learning information technology from scratch.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 16, 2018 2:53 am
Reply with quote

unfortunately the description of the requirement is clear as mud icon_cool.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Mar 16, 2018 10:53 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Mar 16, 2018 6:38 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Mar 16, 2018 8:19 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Fri Mar 16, 2018 8:31 pm
Reply with quote

GIMUNZIP?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 16, 2018 9:06 pm
Reply with quote

from the link posted and by the program name prefix GIM
GIMUNZIP is probably only available for SMPE related/structured data
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Mar 16, 2018 9:08 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
Search our Forums:

Back to Top