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
 

 

Dummy out input file in a sort step

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

New User


Joined: 20 Jul 2006
Posts: 48
Location: Chennai

PostPosted: Fri Aug 24, 2007 12:56 pm    Post subject: Dummy out input file in a sort step
Reply with quote

My requirement is, to provide a empty input file to a sort step which is the first step in job with catalogued proc. First I coded like this.

SORTIN DD DUMMY

But the sort card used in this step sorts the input file based on a character in the input file. The sort card is

OMIT COND=(1,1,CH,EQ,C'9')
SORT FIELDS=(2,6,PD,A)
OUTFIL OUTREC=(1:2,6,PD,TO=ZD,LENGTH=9,71X)

So it throws the error as 'INVALID DATA SET ATTRIBUTES SPECIFIED SORTIN RECFM'.

Then I tried overriding the sort card, ie I commented out the the sort card and gave like this.

SYSIN DD *
SORT FIELDS=COPY

But in catalogued proc we cant use DD *. That is what the error I got when I executed the job with the sort card like this.

So what simple step can I give to get my requirement.

Sakthivel.
Back to top
View user's profile Send private message

muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Fri Aug 24, 2007 1:06 pm    Post subject: Reply to: Dummy out input file in a sort step - Urgent
Reply with quote

If your requirement is just to create an empty output file without any abend/error by passing dummy input file,then here it is

In the JCL where you call the cataloged proc
override as(if stepname is R010)
Code:
R010.SORTIN DD DUMMY
R010.SYSIN DD DSN=******.TEST.CNTLCARD(COPYFILE)



In the Control card pds ******.TEST.CNTLCARD(COPYFILE), have it as
Code:
SORT FIELDS=COPY
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Fri Aug 24, 2007 1:10 pm    Post subject:
Reply with quote

One more option is code DCB parameter for the DUMMY file

Code:
//SORTIN   DD  DUMMY,                           
//             DCB=(RECFM=FB,LRECL=1800)   


Here I have assumed LREC to be 1800.Use per your requirement

No need to change the control card for this method
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Fri Aug 24, 2007 1:22 pm    Post subject:
Reply with quote

Muthu,

Did you try your resolution before posting it?
Back to top
View user's profile Send private message
sakthi_ksv

New User


Joined: 20 Jul 2006
Posts: 48
Location: Chennai

PostPosted: Fri Aug 24, 2007 1:28 pm    Post subject:
Reply with quote

Thanks Muthuvel, It worked as per your second suggestion. that is my requirement too, that i should not modify the sort card. thanks a ton.

But I think we have to also give BLKSIZE parameter for the DUMMY DSN. becuase it gave me error saying INVALID DATASET ATTRIBUTE - BLKSIZE' icon_surprised.gif . After giving BLKSIZE it ran successfully.

Thanks once again for your timely help. icon_biggrin.gif
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Fri Aug 24, 2007 1:32 pm    Post subject:
Reply with quote

It worked fine for me
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am


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