Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Creation of Datasets dynamically on the count basis

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Raghu M N

New User


Joined: 12 Mar 2018
Posts: 1
Location: India

PostPosted: Fri Mar 16, 2018 12:56 am    Post subject: Creation of Datasets dynamically on the count basis
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

Active User


Joined: 29 Apr 2008
Posts: 309
Location: Maryland

PostPosted: Fri Mar 16, 2018 2:10 am    Post subject:
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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
Location: italy

PostPosted: Fri Mar 16, 2018 2:53 am    Post subject: Reply to: Creation of Datasets dynamically on the count basis
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: 2020
Location: UK

PostPosted: Fri Mar 16, 2018 10:53 am    Post subject:
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: 8339
Location: Dubuque, Iowa, USA

PostPosted: Fri Mar 16, 2018 6:38 pm    Post subject: Reply to: Creation of Datasets dynamically on the count basis
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: 640
Location: The Universe

PostPosted: Fri Mar 16, 2018 8:19 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1906
Location: NY,USA

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

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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
Location: italy

PostPosted: Fri Mar 16, 2018 9:06 pm    Post subject: Reply to: Creation of Datasets dynamically on the count basis
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: 640
Location: The Universe

PostPosted: Fri Mar 16, 2018 9:08 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CA SYSVIEW - MQTHRESH updating dynami... Anilkumarmq CA Products 2 Fri Jun 08, 2018 2:06 pm
No new posts Dynamically updating the MQ monitorin... Anilkumarmq Java & MQSeries 0 Fri Jun 08, 2018 2:05 pm
No new posts How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm
No new posts Enterprise PL/I - dynamic allocation ... prino PL/I & Assembler 1 Mon Jan 29, 2018 10:17 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us