IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sort-require to give a space in the procinput


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anand Kumar

New User


Joined: 29 Aug 2007
Posts: 24
Location: chennai

PostPosted: Fri May 01, 2009 11:16 pm
Reply with quote

Hi,

When we give a proc inp member, does it require to give a space in the procinput

Ex:-
Code:
//S020    EXEC PGM=SORT                               
//SYSOUT  DD SYSOUT=(,)                               
//SORTIN  DD DSN=EXAMPLE.U.MJYI(RE251S),DISP=SHR 
//SORTOUT DD DSN=EXAMPLE.RE251.U.MJYI.SRT,DISP=SHR     
//SYSIN   DD DSN=EXAMPLE.WERK.U.PROCINP(AM251),DISP=SHR


IN AM251 the sort card present is:-

Code:

OPTION COPY                                           
  INREC  IFTHEN=(WHEN=(1,1,CH,EQ,C'2'),               
         OVERLAY=(1:C'1',21:C'N',22:C'N',23:C'1')),   
         IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),               
         BUILD=(1:5,58)),                             
         IFTHEN=(WHEN=(1,1,CH,EQ,C'9'),               
         BUILD=(1:5,58))                             
  END                                                 



Since the OPTION COPY is starting from position 1 I get some error. Also i wanted to know whether the OVERLAY used here is correct.

Please help me for the same!!

Regards,
Anand
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri May 01, 2009 11:31 pm
Reply with quote

Quote:
Since the OPTION COPY is starting from position 1 I get some error.
Always....
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri May 01, 2009 11:41 pm
Reply with quote

Hello Anand and welcome to the forum,

No sort control statement should begin in col 1.

Does your system use DFSORT or Syncsort? I'll move your topic to a better part of the forum once we know which product you use.
Back to top
View user's profile Send private message
Anand Kumar

New User


Joined: 29 Aug 2007
Posts: 24
Location: chennai

PostPosted: Sun May 03, 2009 4:11 am
Reply with quote

Hi Dick,

Thank you very much.
The system uses DFSORT

Regards,
Anand
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun May 03, 2009 5:49 am
Reply with quote

Hi Anand,

You're welcome - your topic has been moved icon_smile.gif

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

DFSORT Developer


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

PostPosted: Mon May 04, 2009 9:03 pm
Reply with quote

Anand,

Regardless of the source of DFSORT control statements, you must have at least one blank before the verb (e.g. OPTION, SORT).

Quote:
Also i wanted to know whether the OVERLAY used here is correct.


Well, the syntax is valid. Whether it does what you want depends on what you're trying to do. Note that the following simplified version would be equivalent to what you've coded:

Code:

   OVERLAY=(1:C'1',21:C'NN1')),   
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon May 04, 2009 9:12 pm
Reply with quote

Anand Kumar wrote:
Hi,

When we give a proc inp member, does it require to give a space in the procinput

Ex:-
Code:
//S020    EXEC PGM=SORT                               
//SYSOUT  DD SYSOUT=(,)                               
//SORTIN  DD DSN=EXAMPLE.U.MJYI(RE251S),DISP=SHR 
//SORTOUT DD DSN=EXAMPLE.RE251.U.MJYI.SRT,DISP=SHR     
//SYSIN   DD DSN=EXAMPLE.WERK.U.PROCINP(AM251),DISP=SHR


IN AM251 the sort card present is:-

Code:

OPTION COPY                                           
  INREC  IFTHEN=(WHEN=(1,1,CH,EQ,C'2'),               
         OVERLAY=(1:C'1',21:C'N',22:C'N',23:C'1')),   
         IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),               
         BUILD=(1:5,58)),                             
         IFTHEN=(WHEN=(1,1,CH,EQ,C'9'),               
         BUILD=(1:5,58))                             
  END                                                 



Since the OPTION COPY is starting from position 1 I get some error. Also i wanted to know whether the OVERLAY used here is correct.

Please help me for the same!!

Regards,
Anand


Why not just edit "EXAMPLE.WERK.U.PROCINP(AM251)" and correct it?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top