Hi Rexhead, thanks for taking a look.
It'd be nice if I could check sysout as I think I could pretty much use my same REXX that reads a line from the INPUTDD.
No, this one is simply a JCL stream that runs for numerous processes. ONE of these processes is a prefix file (which has an altidx)...
Hi Folks,
Wrote the following code to check the contents of a one line dataset and dependent on what it finds, sets a RC=
"EXECIO" 1 "DISKR INPUTDD"
000011 pull line
000012 parse var line drop 115 extract 126
000013 say extract
000014 Select
000015 when extract = 'PTLF_EXTRAC'...
RxUSR certainly DID nail it - When I went back in to check (must admit, I sort of benched this as I thought my other plan would work perfectly well) the allocation error was my own fault as I was trying to copy a VB file into an FB backup.
As soon as I rectified this, the routine worked a...
I think more importantly, you need to stop this from getting worse by ensuring your GDG definitions are specifying SCRATCH instead of NOSCRATCH.
When you specify SCRATCH on your GDG definition, as soon as a generation rolls off the end (dependent on LIM=) it scratches the catalog entry as it...
Many thanks for the response. I tried the code this morning and although i couldn't get it to create the correct GDG (dynamic allocation wouldn't allow for anything than ABSOLUTE generation) it did lead me further down the path to glory (well - to appease my jefe).
As of right now - the...
Hi,
I'm trying to find out if it is possible to create a DSN allocation dependent on a variable?
I need to backup a VSAM file but want to back it up to it's own GDG not just a generic GDG.
IE
I have a ring of journals that cycle round each day. The files are called,
let's say ABC.P40JRx...
Hi,
Unfortunately, I hadn't noticed the lack of support for VSAM files at the time I wrote the initial question. I did find that out around 30 minutes later - I have repro'd the file to a flat file.
How would I read that file and set a return code dependannt on the value in col 105.
I can do...
Hi,
I'm trying to write a rexx routine (and I've never used REXX before)to simply check col 105 in a one line VSAM file. If col 105 contains a 'P' then end with RC = (say) 01
If col 105 contains 'T' then end return code = 02
This needs to run in JCL so I'm using IKJEFT01
I'd be gratefull if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.