Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

INDD parameters in the OUTDD parameter in IDCAMS utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
l.nethaji

New User


Joined: 16 Mar 2008
Posts: 90
Location: tamil nadu

PostPosted: Thu Jun 16, 2011 8:34 pm    Post subject: INDD parameters in the OUTDD parameter in IDCAMS utility
Reply with quote

Hi,

I am trying the use the INDD parameters in the OUTDD parameter in IDCAMS utility.

Please let me know if ther is any option like DCB=*.SORTIN as like in sort which in IDCAMS where i prevent the LRECL changes in the future.

Regards,
L.Nethaji
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Thu Jun 16, 2011 8:49 pm    Post subject:
Reply with quote

In the JCL, you want to refer back to an existing file to get an automatic copy of some information? Like you've already done in SORT?

Did you try it? Can't imagine it'll do any damage if you can't. Give it a go.

Look it up in the JCL manual. Try "Backward Reference" in the Index.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Jun 16, 2011 9:33 pm    Post subject: Reply to: IDCAMS
Reply with quote

Of course, the bigger question is, if you already use and are familiar with your SORT tool, why bother with IDCAMS?
Back to top
View user's profile Send private message
l.nethaji

New User


Joined: 16 Mar 2008
Posts: 90
Location: tamil nadu

PostPosted: Thu Jun 16, 2011 11:12 pm    Post subject: Job failef For IDCAMS
Reply with quote

Bill,

I tried running the below JCL .I tried to run the IDCAMS utility to copy the VSAM file into a flat file .I encountered the below error message

STMT NO. MESSAGE

4 IEF642I EXCESSIVE PARAMETER LENGTH IN THE DSNAME FIELD
TM1455I 2011.167 13:35:52 JOB EXT1RXKC FAILED, JCL ERROR

JCL:

//EXT1RXKC JOB (P091,0000),'P0913ACC PROC',
// CLASS=1,MSGCLASS=5,MSGLEVEL=(1,1),NOTIFY=EXT1RXK
//************************************************************
//SN091005 EXEC PGM=IDCAMS,REGION=4096K,COND=(0,NE)
//INDD DD DSN=TEST.N091V.TRN13CLN.SN091055.N091MTD,
// DISP=SHR
//OUTDD DD DSN=EXT.N091V.TRN13CLN.N091MTD22,
// DISP=(NEW,CATLG,DELETE),
// UNIT=DISK,
// SPACE=(CYL,(4900,1200),RLSE),
// DCB=(LRECL=224,BLKSIZE=0,RECFM=FB)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
REPRO INFILE(INDD) OUTFILE(OUTDD)
//

Please correct if am wrong.

Parallely As u suggested i tried to find the backward reference in the JCL guide in google search for IDCAMS . i didnt encounter get any example in search engine as like for my previous query.

Regards,
L.Nethaji
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Jun 16, 2011 11:21 pm    Post subject:
Reply with quote

1. Every data set name is limited to at most 8 characters between periods. Your last node on OUTDD has 9 characters.

2. Depending upon your release of z/OS and your site's storage management policies, be aware that your job may fail with a storage abend after you correct the data set name syntax error. Up through (IIRC) z/OS 1.10, sequential data sets were limited to 65535 tracks and 4900 cylinders as your primary for OUTDD is 73500 tracks.
Back to top
View user's profile Send private message
l.nethaji

New User


Joined: 16 Mar 2008
Posts: 90
Location: tamil nadu

PostPosted: Thu Jun 16, 2011 11:54 pm    Post subject: IDCAMS
Reply with quote

Robert ,

I changes the dataset name as you suggested .

But i encountered the storage problem . It says like more than 100 cyl cant be allocated to TSO POOL.

So i chnged the Cyclinder size to 50,50 as prim and sec.

But when i tried to open the dataset it gives an invalid block size as a error message.

I even tried to comment out the DCB parameters so that i thought the system will take its own based on the input but still it gives maxcc=12.

Please help

JCL:

//SN091005 EXEC PGM=IDCAMS,REGION=4096K,COND=(0,NE)
//INDD DD DSN=TEST.N091V.TRN13CLN.SN091055.N091MTD,
// DISP=SHR
//OUTDD DD DSN=EXT.N091V.TRN13CLN.N091MT7,
// DISP=(NEW,CATLG,DELETE),
// UNIT=DISK,
// SPACE=(CYL,(50,50),RLSE),
// DCB=(LRECL=224,BLKSIZE=0,RECFM=FB)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
----+----1----+----2----+----3----+----4----+----5----+----6----+----7
REPRO INFILE(INDD) OUTFILE(OUTDD)
**WARNING - DSS5572W - DCB MISSING FROM REPRO OUTFILE DD STATEMENT
//


Regards,
L.Nethaji
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 17, 2011 12:03 am    Post subject: Reply to: IDCAMS
Reply with quote

Post the jcl and control statements for the sort process that works. Maybe there is some difference that is not obvious.

Oh, yeah, why chase down this idcams process when it already works (better) with sort icon_confused.gif

d
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Fri Jun 17, 2011 12:07 am    Post subject:
Reply with quote

DSS5572W is an ASG JOB/SCAN message, not an actual IDCAMS message, isn't it?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Fri Jun 17, 2011 12:10 am    Post subject:
Reply with quote

You would do best by spending time with your site support group, team leader, or coworkers to find out the site standards. I don't recognize DSS5572W as an IBM message, which means your site is NOT using the usual IBM standard software. Since the site could be using anything, it is not possible to precisely identify the source of your problem.

And, please, learn to use the Code tag to post JCL -- it preserves spaces which your post didn't.

You might try preallocating the output data set like this:
Code:
//ALLOCFIL EXEC PGM=IEFBR14
//OUTDD    DD DSN=EXT.N091V.TRN13CLN.N091MT7,
//         DISP=(NEW,CATLG,DELETE),
//         UNIT=DISK,
//         SPACE=(CYL,(50,50),RLSE),
//         DCB=(LRECL=224,BLKSIZE=0,RECFM=FB)
//SN091005 EXEC PGM=IDCAMS,REGION=4096K,COND=(0,NE)
//INDD     DD DSN=TEST.N091V.TRN13CLN.SN091055.N091MTD,
//         DISP=SHR
//OUTDD    DD DSN=EXT.N091V.TRN13CLN.N091MT7,
//         DISP=OLD
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
  REPRO INFILE(INDD) OUTFILE(OUTDD)
/*
but based on what you've posted so far, I don't hink there's a high chance of this working.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Jun 17, 2011 12:12 am    Post subject: Reply to: IDCAMS
Reply with quote

Quote:
DSS5572W - DCB MISSING FROM REPRO OUTFILE DD STATEMENT


posting any jcl checker messages is just a waste of time for everybody.

come back only when You can post real JCL messages
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Fri Jun 17, 2011 11:23 am    Post subject:
Reply with quote

Hi There,

below code works perfectly for me, try removing the blksize and come back with your results.

Code:
//SN091005 EXEC PGM=IDCAMS,REGION=4096K,COND=(0,NE)
//INDD     DD DSN=XXX.JXXX.XXXX.T1706,         
//            DISP=SHR                             
//OUTDD    DD DSN=XXXX.JXXXX.XXXX.T1606.TEST1,   
//            DISP=(NEW,CATLG,DELETE),             
//            UNIT=SYSDA,                           
//            SPACE=(CYL,(50,50),RLSE),             
//            DCB=(LRECL=643,RECFM=VB)             
//SYSPRINT DD SYSOUT=*                             
//SYSIN DD *                                       
 REPRO -                                           
  INFILE(INDD) -                                   
  OUTFILE(OUTDD)                                   
/*                                                 
Back to top
View user's profile Send private message
prasanth_thavva

New User


Joined: 28 Jul 2005
Posts: 86
Location: Chennai

PostPosted: Sat Jun 18, 2011 8:04 am    Post subject: Reply to: INDD parameters in the OUTDD parameter in IDCAMS u
Reply with quote

Kindly let me know BLKSIZE=0 is the reason for JCL execution failure, BLKSIZE = 0 gives the sytem to decide the BLKSIZE at run time. or BLKSIZE not required parameter in IDCAMS utility ?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jun 18, 2011 8:58 am    Post subject:
Reply with quote

Hello,

Code:
**WARNING - DSS5572W - DCB MISSING FROM REPRO OUTFILE DD STATEMENT


Quote:
Kindly let me know BLKSIZE=0 is the reason for JCL execution failure,
You have not posted any "jcl executon failure". As others have mentioned, the DSS5572W is a warning from a jcl checker - not a jcl error.

Once again, why are you not putting your effort into the better solution using sort?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Sat Jun 18, 2011 6:10 pm    Post subject:
Reply with quote

Quote:
Kindly let me know BLKSIZE=0 is the reason for JCL execution failure, BLKSIZE = 0 gives the system to decide the BLKSIZE at run time. or BLKSIZE not required parameter in IDCAMS utility ?
First, BLKSIZE=0 tells the system to determine the block size -- it is not going to cause any kind of problem.

Second, BLKSIZE is never used "in IDCAMS utility" -- IDCAMS requires control cards (such as DUMP, EXPORT, REPRO, PRINT, DEFINE). The BLKSIZE parameter is used in JCL, which can execute IDCAMS. Hence BLKSIZE is not even part of IDCAMS.

Third, you have not yet posted ANYTHING that indicates your JCL has any execution problem. All you have done is show that a JCL checker does not like something about your JCL, and that means nothing. The only thing that counts is when you submit the job and get the system messages.

Fourth, based upon your complete lack of understanding of (1) IDCAMS, (2) JCL, (3) batch processing, and (4) z/OS operation -- along with your refusal to understand what you are told -- I highly recommend you stop posting on this forum and start using the Beginners and Students Forum instead as it is more likely to get you answers that you can use. This forum is for professionals and you have, very completely, demonstrated that you are not a professional.
Back to top
View user's profile Send private message
prasanth_thavva

New User


Joined: 28 Jul 2005
Posts: 86
Location: Chennai

PostPosted: Sun Jun 19, 2011 12:25 am    Post subject: Reply to: INDD parameters in the OUTDD parameter in IDCAMS u
Reply with quote

Based on this below message , I have raised my query ,

"below code works perfectly for me, try removing the blksize and come back with your results."

i can understand the BLKSIZE is not related to IDCAMS and also BLKSIZE =0 means ...etc

when i saw the above post i got doubt by removing blksize how he resolved the issue.

Thanks once again for ur detail understanding and explanation
Thanks
Prasanth
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Sun Jun 19, 2011 1:10 am    Post subject:
Reply with quote

Perhaps Dsingh29 will explain what was meant -- especially since removing the block size would have nothing to do with getting a good REPRO, so the comments made in that post are pretty much useless and irrelevant to the issue. That you are focused on them, instead of paying attention to the advice and questions of the senior members and moderators of this board, is another indication that you need to go to the Beginners and Students forum.
Back to top
View user's profile Send private message
jasorn

Active User


Joined: 12 Jul 2006
Posts: 153
Location: USA

PostPosted: Wed May 15, 2013 10:53 pm    Post subject:
Reply with quote

Excuse me for replying to an old post. I don't mean to discount the "try the student' section part of Robert's reply". But BLKSIZE is used in IDCAMS. I didn't want people reading this thread to think BLKSIZE was never used in IDCAMS.

[quote="Robert Sample"]
Quote:

Second, BLKSIZE is never used "in IDCAMS utility" -- IDCAMS requires control cards (such as DUMP, EXPORT, REPRO, PRINT, DEFINE). The BLKSIZE parameter is used in JCL, which can execute IDCAMS. Hence BLKSIZE is not even part of IDCAMS.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm
No new posts Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us