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
 
reg - COND CODE 0020

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

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Tue Aug 29, 2006 9:07 am    Post subject: reg - COND CODE 0020
Reply with quote

Hi,

My requirement is to convert records in the format

Code:

rajee     mukesh     124576


to

Code:

rajee mukesh 124576


so, i used the build command to process the rquirement. but it is giving cond code as 20. no output records are generated.

input and output dataset parameters are lrecl=270 and recfm=fb.

this is my piece of code.

Code:

//STEP1 EXEC PGM=ICETOOL                                         
//SYSOUT DD SYSOUT=*                                         
//SORTIN DD DSN=A7105UF.PATTABI.TRICK003.INPUT,DISP=SHR       
//SORTOUT DD DSN=A7105UF.PATTABI.TRICK003.OUTPUT1,           
//           DISP=(NEW,CATLG,DELETE),                         
//           SPACE=(CYL,(10,5),RLSE),                         
//           DCB=(RECFM=FB,LRECL=270,BLKSIZE=2700)           
//SYSIN DD *                                                 
  OPTION COPY                                                 
  INREC BUILD=(1,270,SQZ=(SHIFT=LEFT,MID=C' '))               
/*                                                           


please help me out.

thanks in advance.
Back to top
View user's profile Send private message

pattabiraman.baskaran

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Tue Aug 29, 2006 9:10 am    Post subject:
Reply with quote

A small change in my query,

My requirement is to convert records in the format

rajee (5 spaces) mukesh (5 spaces) 124576

to

rajee mukesh 124576.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Aug 29, 2006 8:45 pm    Post subject:
Reply with quote

You have PGM=ICETOOL which invokes DFSORT's ICETOOL, but then you have the DD statements that go with PGM=ICEMAN rather than PGM=ICETOOL. The RC=20 indicates you're missing the TOOLMSG DD for ICETOOL. Change your EXEC statement to

Code:

//STEP1 EXEC PGM=ICEMAN


to invoke DFSORT instead of ICETOOL and the rest of your JCL will work fine.

Or if you want to use ICETOOL, change your job to:

Code:

//STEP1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=A7105UF.PATTABI.TRICK003.INPUT,DISP=SHR
//OUT DD DSN=A7105UF.PATTABI.TRICK003.OUTPUT1,
//           DISP=(NEW,CATLG,DELETE),
//           SPACE=(CYL,(10,5),RLSE),
//           DCB=(RECFM=FB,LRECL=270,BLKSIZE=2700)
//TOOLIN DD *
COPY FROM(IN) TO(OUT) USING(CTL1)
/*
//CTL1CNTL DD *
   INREC BUILD=(1,270,SQZ=(SHIFT=LEFT,MID=C' '))
/*
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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

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