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
 

 

Sort-require to give a space in the procinput

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Sort-require to give a space in the procinput
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: 2150
Location: At my coffee table

PostPosted: Fri May 01, 2009 11:31 pm    Post subject:
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

Site Director


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

PostPosted: Fri May 01, 2009 11:41 pm    Post subject:
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    Post subject: Reply to: Sort-require to give a space in the procinput
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

Site Director


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

PostPosted: Sun May 03, 2009 5:49 am    Post subject: Reply to: Sort-require to give a space in the procinput
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 Moderator


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

PostPosted: Mon May 04, 2009 9:03 pm    Post subject:
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    Post subject: Re: Sort-require to give a space in the procinput
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    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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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