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
 

 

Use of Parm in SORT

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

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon May 09, 2016 9:16 pm    Post subject: Use of Parm in SORT
Reply with quote

Hi

I am trying to get 'X' number of records from a file for each execution using ENDREC. I used SET and passed the value using PARM.

SET X=1000
In SORT , PARM='JP1"&X"'.

In Outfil i have ENDREC=JP1 , however, it is getting substituted as ENDREC=C'1000', instead of ENDREC=1000 and failing with syntax error.
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1653
Location: NY,USA

PostPosted: Mon May 09, 2016 10:34 pm    Post subject:
Reply with quote

Because that is a string. You would have to build a sort card which fits to your requirement and if you tell us more then someone can help you better.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7308

PostPosted: Tue May 10, 2016 3:51 am    Post subject: Reply to: Use of Parm in SORT
Reply with quote

The JPn is a sort symbol. A symbol has a syntax. You can't necessarily use it anywhere you want. What release of DFSORT do you have?

If you want to do this "dynamically" with your DFSORT, have a separate step which generates the OUTFIL and use dataset concatenation on SYSIN to build the full sort cards on the second step.
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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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