SELECT PGM

IBM's Command List programming language & Restructured Extended Executor
samb01
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

Re: SELECT PGM

Postby samb01 » Thu Jul 19, 2018 6:48 pm

Hello,

the options REUSE and DYNAMNBR=500 don't work...

Code: Select all


CC=BPXWDYN('ALLOC RTDDN(DISKDD) SHR VOL('DISK') UNIT(SYSDA) REUSE')  

 


So i will divide the input dataset in five smaller dataset. And i will exec the PGM five times.

I just have a problem in divided thhe input dataset in 5 smaller by using ICETOOL
.

So maybe i will post in dfsort forum .

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: SELECT PGM

Postby Robert Sample » Thu Jul 19, 2018 6:52 pm

I just have a problem in devided thhe input dataset in 5 smaller by using ICETOOL
Why not use IDCAMS REPRO with the COUNT / SKIP options?

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

Re: SELECT PGM

Postby willy jensen » Thu Jul 19, 2018 6:56 pm

Sorry, I should have read more careful what you posted.
As you use the format CC=BPXWDYN('ALLOC RTDDN(DISKDD) SHR VOL('DISK') UNIT(SYSDA)') you MUST do a "FREE DD("diskdd")" after calling IEHLIST.

samb01
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

Re: SELECT PGM

Postby samb01 » Thu Jul 19, 2018 7:08 pm

Robert Sample wrote:
I just have a problem in devided thhe input dataset in 5 smaller by using ICETOOL
Why not use IDCAMS REPRO with the COUNT / SKIP options?


Because my input dataset will become bigger and bigger beaucause of the number of the volume wich is growing day by day.

So i would like to find a way to divide dynamicly the input dataset by considering the numbers of the line of the input dataset.

samb01
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

Re: SELECT PGM

Postby samb01 » Thu Jul 19, 2018 7:26 pm

willy jensen wrote:Sorry, I should have read more careful what you posted.
As you use the format CC=BPXWDYN('ALLOC RTDDN(DISKDD) SHR VOL('DISK') UNIT(SYSDA)') you MUST do a "FREE DD("diskdd")" after calling IEHLIST.


Thnk's Willy for your advice but it dosen't work too by doing this :

Code: Select all


"DELSTACK"                                      
 QUEUE ' LISTVTOC VOL=3390='DISK',DSNAME='DSN  
 "EXECIO" QUEUED() "DISKW SYSIN (FINIS)"        
 "CALL *(IEHLIST)"                              
 "FREE DD("DISKDD")"                            
 SAY 'IEHLIST RC' RC                            
 "EXECIO * DISKR SYSPRINT (FINIS)"              

 


i have this error :
ALLOC DISK FAILED 35127296
ISPD117

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

Re: SELECT PGM

Postby willy jensen » Thu Jul 19, 2018 7:34 pm

Yeah, but the code is different - 35127296 = x'0218', and if you look at where Robert Sample mentioned, you will find that 0215 means 'Specified volume or an acceptable volume is not mounted, and user does not have volume mounting authorization through the DYNALLOC request.'
And your 'SAY 'IEHLIST RC' RC' is placed wrongly in the program, the FREE command also sets the RC value.

User avatar
Pedro
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Skillset: ISPF
Referer: google
Location: Silicon Valley

Re: SELECT PGM

Postby Pedro » Thu Jul 19, 2018 7:47 pm

1. You use 'ALLOC DISK FAILED' message text twice. I suggest to use different messages so that you can tell which instance issued the message.

2. I am not familiar with this syntax:

Code: Select all

IF CC<>0 THEN EXIT CLOSE('ALLOC DISK FAILED' CC,8)

Shouldn't it be something like:

Code: Select all

IF CC<>0 THEN Do; CLOSE('ALLOC DISK FAILED' CC,8); EXIT; End

where the EXIT occurs after your recovery routine?
Pedro Vera

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

Re: SELECT PGM

Postby willy jensen » Thu Jul 19, 2018 8:01 pm

@Pedro - the 'EXIT CLOSE(text,rc) is from my sample on page 1. The CLOSE function has an EXIT at the end, so could equally well have been 'Call CLOSE text,rc'. I like functions.

samb01
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Skillset: quite good
Referer: by web

Re: SELECT PGM

Postby samb01 » Thu Jul 19, 2018 8:34 pm

willy jensen wrote:Yeah, but the code is different - 35127296 = x'0218', and if you look at where Robert Sample mentioned, you will find that 0215 means 'Specified volume or an acceptable volume is not mounted, and user does not have volume mounting authorization through the DYNALLOC request.'
And your 'SAY 'IEHLIST RC' RC' is placed wrongly in the program, the FREE command also sets the RC value.

Willy you're right.

It works now !

Thank you for your help :D

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: SELECT PGM

Postby NicC » Fri Jul 20, 2018 1:11 am

This is a different topic to the one that began this topic in the first place. Locked.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic