View previous topic :: View next topic
|
Author |
Message |
Bhuvanakp
New User
Joined: 29 Aug 2007 Posts: 19 Location: Chennai
|
|
|
|
Hi,
Needs to replace the below FileAid with Sort Card.
$$DD01 DUMP OUT=11 |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Bhuvana,
Have seen so many posts on fileaid-sort card converions. It would be great if you can explain as to what this fileaid command does so that it would be easy for others to write a corresponding sort card. |
|
Back to top |
|
|
hchinnam
New User
Joined: 18 Oct 2006 Posts: 73
|
|
|
|
Can you explain your question a bit clearly. how do you want your output should look like. |
|
Back to top |
|
|
Bhuvanakp
New User
Joined: 29 Aug 2007 Posts: 19 Location: Chennai
|
|
|
|
Hi,
When I checked for the explanation of the Dump in FileAid card,
the below explanation I received:
Example 1:
$$DD01 DUMP OUT=5
Example 1 prints the first five records from the input dataset in a format that shows both the character and hexadecimal data. This application of DUMP is useful for packed and other nonprintable data.
Now I need to replace this with Sort Card so that it could prints the first five records from the input dataset in a format that shows both the character and hexadecimal data. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
All,
Got the explanation from a manual.
Quote: |
$$DD01 DUMP OUT=11 |
The above condition does the foll
- Generates a hexadecimal print for the first 11 records in the input file.
Bhuvana wants an equivalent SORT card doing the same.
Hope I am not wrong. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Has Bhuvana shown any evidence of reading his associated sort manuals ? Instead of just asking how rather than "I have tried, but .............." |
|
Back to top |
|
|
Bhuvanakp
New User
Joined: 29 Aug 2007 Posts: 19 Location: Chennai
|
|
|
|
Hi,
I got the following info from the manual:
Example 1 prints the first five records from the input dataset in a format that shows both the character and hexadecimal data. .
I the underlined different from Generating hexadecimal print only for the first 11 records in the input file.
Please clarify. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Bhuvana,
What is the RECFM and LRECL of the input file?
It would help if you (or someone else) showed an example of the output FileAid actually produces for that command. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hello,
Here's a sample of the DUMP output produced by file-aid.
Input
Code: |
//DD01 DD *
1111
2222
3333
4444
//SYSIN DD *
$$DD01 DUMP OUT=2 |
Output
Code: |
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+---
F I L E - A I D V8.9.0 19 - SEP - 2008 09.39.14 PAGE 1
DD01=XXXXXXX.XXXXXXXX.JOB27096.D0000101.? VOL=SYSOUT
REC 1 DATA 80
4900-00-000 DATA 80
CHAR 1111
ZONE FFFF4444444444444444444444444444444444444444444444444444444444444444444444444444
NUMR 11110000000000000000000000000000000000000000000000000000000000000000000000000000
...1...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80
REC 2 DATA 80
CHAR 2222
ZONE FFFF4444444444444444444444444444444444444444444444444444444444444444444444444444
NUMR 22220000000000000000000000000000000000000000000000000000000000000000000000000000
...1...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 |
Thanks,
Arun |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Very similar output may be gotten from DITTO as well. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
I can't match that exact layout, but here's a DFSORT job that will provide similar information using a different layout:
Code: |
//DUMP EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
1111
2222
3333
4444
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTFIL BUILD=(8C'-',/,C'RECORD ',SEQNUM,8,ZD,//,
C'CHAR ',1,80,//,
C'HEX ',1,80,HEX)
/*
|
|
|
Back to top |
|
|
|